-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
why #3
Comments
Same issue for me as well. It seems non-https requests are blocked by Mac network. Any leads @Anish-Agnihotri ? |
Hey folks, do you have a local mainnet RPC endpoint deployed to The scripts in all index.js files use a local RPC endpoint. I think this issue may be that Ethers cannot detect an RPC endpoint for you. If that is the issue, try replacing this URL with an RPC endpoint from Infura/Alchemy/Quicknode/etc., or run a local node? |
Hi @Anish-Agnihotri I tried changing the script to use the Cloudflare Gateway and it seems to work for a while but then I also get an error. |
I see; unfortunately don't have an OpenEthereum node handy to troubleshoot but I'll try to find one. Cloudflare Gateway may be failing because of a rate-limit. I tried with Infura and Alchemy, and both seem to work for me. |
Yeah you're probably right. Must be some rate limiting going on. Thanks Cloudflare: |
Nevermind. I seem to have gotten it to work with Infura. Thanks |
Looks I spoke too soon. I guess Infura also has problems apparently
Can you change the script to save the output every once in awhile so we don't have to start with token 8001 each time the script crashes? Thanks |
Very weird, I was able to do a full run-through with Infura properly. I'll dig into this and yes, will add chunk saves every couple hundred to prevent having to restart. |
I just tried with Etherscan and after about 90 tokens or so I get a bad gateway response (502) and the script stops |
Hi! Everything works fine with getDefaultProvider and etherscan API key but when I'm trying to make it work with local RPC endpoint (geth --rpc) throws |
Interesting that etherscan worked for you @ashervillle . Did you not get an error message from their server after a few hundred calls? As for your question on the local RPC endpoint I believe you'll have to run a full node yourself (google openethereum). Cheers |
Any update on this? @Anish-Agnihotri are you still going to implement saving state so we don't have to start all over when/if the script stops because the provider gives a bad response? @ashervillle do you have a normal free etherscan account or a paid one? Still trying to figure out why I start getting error responses after a few hundred API calls. Thanks |
Thanks for the warning @joeleonjr ! I'm assuming it was my Infura API key which I have now rotated. |
(node:11683) UnhandledPromiseRejectionWarning: Error: could not detect network (event="noNetwork", code=NETWORK_ERROR, version=providers/5.4.4)
The text was updated successfully, but these errors were encountered: