Uncaught Error Returned values aren t valid did it run Out of Gas

+1 vote

I am created a smart contract in truffle. Compile and deploy worked successfully. When I make any transactions, I am getting this error:

Uncaught Error: Returned values aren't valid, did it run Out of Gas? at ABICoder.push../node_modules/web3-eth-abi/src/index.js.ABICoder.decodeParameters (index.js:227) at ABICoder.push../node_modules/web3-eth-abi/src/index.js.ABICoder.decodeLog (index.js:277)
Jan 31, 2019 in Blockchain by Amit
8,273 views

4 answers to this question.

+1 vote
Best answer

Could be due to previously set values. Try resetting the project:

truffle migrate --reset

If this doesn't work then you might have to downgrade web3 to v1.0.0

answered Jan 31, 2019 by Omkar
• 69,220 points

selected May 8, 2019 by Kalgi
0 votes
Make sure you are using the contract address and not the account address. I got this error because I was using the account address.
answered May 8, 2019 by Raj
I am using contract address but still facing this error
+1 vote

As suggested by @Omkar, resetting the project will work. Another way to do this is to delete all the json files in the /build/contract directory. 

$ cd build/contract
$ rm -rf *.json
answered May 8, 2019 by Sujay
–1 vote
This is a bug in older web3js. Update to the latest web3js, the error will be solved.
answered May 8, 2019 by Vibe
I don't think it's a bug. I have used the older versions without any problem.
Which older version? Can you specify it?
version 1.0.0 beta 45

Related Questions In Blockchain

0 votes
0 answers

Migrations ran out of gas

I have unboxed pet-shop. Then inside the ...READ MORE

Jun 25, 2019 in Blockchain by anonymous
1,085 views
+1 vote
1 answer

I would like to create a blockchain network which will stay at the same level of complexity, is it possible?

You can very easily create a cryptocurrency having a ...READ MORE

answered Apr 4, 2018 in Blockchain by Christine
• 15,790 points
839 views
0 votes
1 answer

What if Gas required in my program exceeds the limit of 3000000?

Going through your code, I noticed that  you ...READ MORE

answered May 29, 2018 in Blockchain by Perry
• 17,100 points
800 views
0 votes
1 answer

Web3j Transfer.sendFunds() returns Error “insufficient funds for gas * price + value”

DISCLAIMER. This may not necessarily be an answer to your ...READ MORE

answered Jun 16, 2018 in Blockchain by charlie_brown
• 7,720 points
3,028 views
0 votes
1 answer

Truffle tests not running after truffle init

This was a bug. They've fixed it. ...READ MORE

answered Sep 11, 2018 in Blockchain by Christine
• 15,790 points
1,913 views
0 votes
1 answer

Solidity geth: Error encountered during contract execution [Bad instruction]

recipes is a dynamic storage array. You need ...READ MORE

answered Oct 15, 2018 in Blockchain by Omkar
• 69,220 points
1,458 views
0 votes
2 answers

Why is network already up to date while trying to deploy a contract on truffle?

I guess you have ganache running already ...READ MORE

answered Apr 24, 2018 in Blockchain by Shashank
• 10,400 points
4,555 views
0 votes
1 answer

How can I deploy a HelloWorld contract on my testrpc network?

The problem lies in the command: truffle migrate Your truffle migrate command ...READ MORE

answered Apr 27, 2018 in Blockchain by Perry
• 17,100 points

edited Aug 10, 2018 by Omkar 2,829 views
0 votes
1 answer

Truffle "Migrations" ran out of gas error

This error is caused because the amount ...READ MORE

answered Jan 17, 2019 in Blockchain by Omkar
• 69,220 points
4,068 views
0 votes
2 answers

Python syntax error because of version conflicts.

As mentioned in the reply to my ...READ MORE

answered Aug 13, 2018 in Blockchain by Omkar
• 69,220 points
1,321 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP