Skip to content
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

Error: Returned values aren't valid, did it run Out of Gas? You might also see this error if you are not using the correct ABI for the contract you are retrieving data from, requesting data from a block number that does not exist, or querying a node which is not fully synced. #16

Open
canberk17 opened this issue Jan 20, 2021 · 4 comments

Comments

@canberk17
Copy link

when I try to check the price of other tokens like CFI, MAHA, GRT, XED it gives me the following error. Did anyone encounter this so far?

Listening on 5000 Checking prices... Error: Returned values aren't valid, did it run Out of Gas? You might also see this error if you are not using the correct ABI for the contract you are retrieving data from, requesting data from a block number that does not exist, or querying a node which is not fully synced.

@cipherzzz
Copy link

if they aren't in the pools you will get this. for instance, if you use the uniswapv2 and try to use the eth address you will get this because uniswapv2 only uses weth @canberk17

@royjosefsson
Copy link

I'm very new to this. I haven't changed the code whatsoever, how come i've getting this error?

@aurelticot
Copy link

I'm very new to this. I haven't changed the code whatsoever, how come i've getting this error?

@royjosefsson check your RPC_URL, the example is on ropsten network but the exchange addresses are for the mainnet. Use a mainnet infura node.

@GitCulture
Copy link

I'm very new to this. I haven't changed the code whatsoever, how come i've getting this error?

@royjosefsson check your RPC_URL, the example is on ropsten network but the exchange addresses are for the mainnet. Use a mainnet infura node.

So I cant test it first on ropsten ? I tryid to change addres with that from ropsten testnet but it wont work ... same error like above

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants