Bitcoind Internal Server Error #8211

issue macdasi opened this issue on June 16, 2016
  1. macdasi commented at 7:43 PM on June 16, 2016: none

    I'm trying to call bitcoind sendtoaddress with params :

    18et8yw71yfxsQz99c5sHHEgYtR32kkfw 0.15161962

    and there is an exception "(500) Internal Server Error."

    The wallet has sufficient funds ~30 bitcoins The same call to different address works good The same call with different amount (0.001bitcoin) works good It started to fail with internal errors since 0.12.11 bitcoin core version and qt-5.5.0 I don't understand why only this call failed ?

    I set the fee to 0.0002 before calling sendtoaddress , the problem is that the call sendtoaddress one time works and sometimes return internal error, Is there some kind of log ?

  2. laanwj added the label RPC/REST/ZMQ on Jun 17, 2016
  3. laanwj commented at 8:28 AM on June 17, 2016: member

    Is there some kind of log

    Anything in debug.log? You can try running bitcoind/-qt with -debug=1 to get full debug output.

  4. laanwj commented at 8:31 AM on June 17, 2016: member

    No problem here (I obviously tried with a wallet without funds):

    $ src/bitcoin-cli -datadir=/store/tmp/testbtc sendtoaddress 18et8yw71yfxsQz99c5sHHEgYtR32kkfw 0.15161962
    error code: -6
    error message:
    Insufficient funds
    

    Note that bitcoind will never return an internal server error (grep for HTTP_INTERNAL_SERVER_ERROR) in RPC usage.

    It could be a client-side timeout. Try running bitcoin-cli with -rpcclienttimeout=1000.

  5. macdasi commented at 11:37 AM on June 17, 2016: none

    Can I set the debug to only log info for sending transactions ? I want it to log only when I invoke method "sendtoaddress"

  6. laanwj commented at 11:56 AM on June 17, 2016: member

    Not using command line options. You could temporarily add extra logging in wallet/rpcwallet.cpp in the implementation of sendtoadress.

  7. macdasi commented at 2:15 PM on June 17, 2016: none

    Output debugging information (default: 0, supplying <category> is optional). If <category> is not supplied or if <category> = 1, output all debugging information.<category> can be: addrman, alert, bench, coindb, db, lock, rand, rpc, selectcoins, mempool, mempoolrej, net, proxy, prune, http, libevent, tor, zmq, qt. should I use -debug=rpc ?

  8. laanwj commented at 8:53 AM on June 20, 2016: member

    Yes you can use debug=rpc (what I suggested, debug=1 enables all categories including rpc) which does some logging per call. I doubt it will help you much with debugging this specific issue though.

  9. macdasi commented at 7:59 AM on June 28, 2016: none

    I found that this addresses causing the problem "internal server error" 18et8yw71yfxsQz99c5sHHEgYtR32kkfw 1L9WbTM5XHYAwtpzcSV1gRuSK41aEu2MQg 1BPB3ZG9NJVJNeaAZnJ4itoUBVNEkGMS5c 13s5QivQPeeABXQUYhUxrucULbR4KaBLm6 16RE1uKkg1wH2a4q1r2DvWMg2p4CSXiJqr 191nZhtTosUBSDU6Qjr3A83ajeFV3Qc91g 1JeXoQ6bsHTW465aLBhFj2azRcim1ckYav 14PkPcCSY7iuFo4D21z57EAKygFfbk1QDF 1Ewwe4XuXn9XPCPQUFns9YsVBMFviahx8D 1LoB79zHbhbqMTcEwxWV7FDfUEXUYr6syG 19Yc4Ht9MdxEQ2rTN3hqGZXpDSdJq14xYJ 35JJ6dfGKAaW15SP2RLZbJUa9gZTPZBABq 1FjQm9zwEo5u8pMAbrwfRLMQWYkQUQGYV1 Does it help ?

  10. MarcoFalke commented at 5:10 PM on June 28, 2016: member

    @macdasi Any information in the relevant parts of debug.log (You may also use -printtoconsole)

  11. macdasi commented at 8:34 PM on June 29, 2016: none

    @MarcoFalke , what should I look for ? the error happens on sendtoaddress call

  12. fanquake closed this on May 18, 2017

  13. MarcoFalke locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-13 15:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me