Bitcoin Forum
May 10, 2024, 01:37:13 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Bitcoin API and timeouts...  (Read 532 times)
Richy_T (OP)
Legendary
*
Offline Offline

Activity: 2436
Merit: 2121


1RichyTrEwPYjZSeAYxeiFBNnKC9UjC5k


View Profile
August 05, 2015, 08:25:19 PM
 #1

If one attempts to make calls to the bitcoin API while it is still syncing, often (sometimes not), I will get a 500 error timeout. This will happen with commands such as getblockcount. Other times, I might get an error 28 (which I can deal with easily enough). getblocktemplate seems to always return (even with an error).

So my question is, what is the best way to avoid the 500 errors. Do I just need a longer timeout or is bitcoind pretty much "too busy" for the duration? Is there a strategy to use such as calling getblocktemplate first and if that doesn't return an error, I can proceed?

1RichyTrEwPYjZSeAYxeiFBNnKC9UjC5k
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!