Bitcoin Forum
May 09, 2024, 09:22:49 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Warning: One or more bitcointalk.org users have reported that they strongly believe that the creator of this topic is a scammer. (Login to see the detailed trust ratings.) While the bitcointalk.org administration does not verify such claims, you should proceed with extreme caution.
Pages: [1]
  Print  
Author Topic: listtransactions unconfirmed problem BOUNTY  (Read 1031 times)
williamj2543 (OP)
Hero Member
*****
Offline Offline

Activity: 588
Merit: 500

Get ready for PrimeDice Sig Campaign!


View Profile WWW
August 01, 2014, 08:08:54 PM
 #1

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
0.002 BTC bounty for this (Small, buy a chocolate bar or something, its not a very complicated question).

█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████
▓▓▓▓▓  BIT-X.comvvvvvvvvvvvvvvi
→ CREATE ACCOUNT 
▓▓▓▓▓
█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████
1715289769
Hero Member
*
Offline Offline

Posts: 1715289769

View Profile Personal Message (Offline)

Ignore
1715289769
Reply with quote  #2

1715289769
Report to moderator
1715289769
Hero Member
*
Offline Offline

Posts: 1715289769

View Profile Personal Message (Offline)

Ignore
1715289769
Reply with quote  #2

1715289769
Report to moderator
1715289769
Hero Member
*
Offline Offline

Posts: 1715289769

View Profile Personal Message (Offline)

Ignore
1715289769
Reply with quote  #2

1715289769
Report to moderator
The block chain is the main innovation of Bitcoin. It is the first distributed timestamping system.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715289769
Hero Member
*
Offline Offline

Posts: 1715289769

View Profile Personal Message (Offline)

Ignore
1715289769
Reply with quote  #2

1715289769
Report to moderator
1715289769
Hero Member
*
Offline Offline

Posts: 1715289769

View Profile Personal Message (Offline)

Ignore
1715289769
Reply with quote  #2

1715289769
Report to moderator
1715289769
Hero Member
*
Offline Offline

Posts: 1715289769

View Profile Personal Message (Offline)

Ignore
1715289769
Reply with quote  #2

1715289769
Report to moderator
Envrin
Sr. Member
****
Offline Offline

Activity: 318
Merit: 251



View Profile
August 01, 2014, 11:43:52 PM
 #2


Wrap an exception around your code doing the RPC call:

Code:
try{
     $client->listtransactions();
} catch (Exception $e) {
     echo "Didn't work -- " . $e->getMessage();
}
williamj2543 (OP)
Hero Member
*****
Offline Offline

Activity: 588
Merit: 500

Get ready for PrimeDice Sig Campaign!


View Profile WWW
August 06, 2014, 09:26:46 PM
 #3


Wrap an exception around your code doing the RPC call:

Code:
try{
     $client->listtransactions();
} catch (Exception $e) {
     echo "Didn't work -- " . $e->getMessage();
}

Tried that, still returned an error
Code:
Didn't work -- Incorrect response id (request id: 1, response id: )

█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████
▓▓▓▓▓  BIT-X.comvvvvvvvvvvvvvvi
→ CREATE ACCOUNT 
▓▓▓▓▓
█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████
JCaferJr
Member
**
Offline Offline

Activity: 67
Merit: 10



View Profile
January 28, 2015, 04:48:35 AM
 #4

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?
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!