Title: listtransactions unconfirmed problem BOUNTY Post by: williamj2543 on August 01, 2014, 08:08:54 PM I am programming with blockchain's daemon, and I found that if I did listtransactions for an address with an unconfirmed transaction, the php script would have an error, and as soon as it got confirmed, it would work finely. I am making a script to be ran every 15 or so seconds to process transactions coming into an address, and I can't have the whole script fail until every single transaction confirms.
Here is the error I get as soon as I send a transaction which is unconfirmed: Code: Fatal error: Uncaught exception 'Exception' with message 'Incorrect response id (request id: 1, response id: )' in /home/crypsizy/public_html/jsonRPCClient.php:152 Stack trace: #0 /home/crypsizy/public_html/bitcoind.php(22): jsonRPCClient->__call('listtransaction...', Array) #1 /home/crypsizy/public_html/bitcoind.php(22): jsonRPCClient->listtransactions('18wEYfiCauuGnag...', 10) #2 {main} thrown in /home/crypsizy/public_html/jsonRPCClient.php on line 152 Title: Re: listtransactions unconfirmed problem BOUNTY Post by: Envrin on August 01, 2014, 11:43:52 PM Wrap an exception around your code doing the RPC call: Code: try{ Title: Re: listtransactions unconfirmed problem BOUNTY Post by: williamj2543 on August 06, 2014, 09:26:46 PM Wrap an exception around your code doing the RPC call: Code: try{ Code: Didn't work -- Incorrect response id (request id: 1, response id: ) Title: Re: listtransactions unconfirmed problem BOUNTY Post by: JCaferJr on January 28, 2015, 04:48:35 AM This is still an issue on blockchain.info
***** Request ***** {"method":"listtransactions","params":["TestLabel",100],"id":1} ***** End Of request ***** ***** Server response ***** {"jsonrpc":"2.0","error":{"code":-32603,"message":null}} ***** End of server response ***** Anyone know of a work-around besides using listsinceblock? |