UnhandledPromiseRejectionWarning
Driltan opened this issue · comments
Hello,
Using npm v6.4.1 & node v11.2.0 on Ubuntu x64 I get the following error every now and then.
(node:11310) UnhandledPromiseRejectionWarning: Maximum concurrent requests for this endpoint reached. Please try again shortly.
(node:11310) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:11310) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
I tried with different versions of node but I still get those errors.
"Await" is supposed to prevent this so there might be a problem somewhere.
I'm using the very last code you updated.
Hi,
Did the script work for a while before displaying this error?
It use the https://blockchain.info/q API, and there may be limitations on the number of calls.
Indeed it works for some time then show me this error before it stops.
I have to restart it then it shows me the error again, it can work for 1 minute or 5+ then it fails.
Sorry for that, there's nothing I can do about it.
When I did this POC, there was no such limit.
I add a warning on the README.
Anyway, thank you for your feedback !