D04 - AdvancedStorage - Uncaught (in promise) Error: Returned values aren't valid, did it run Out of Gas?
crpdev opened this issue · comments
When running the frontend on a web browser, connected to ganache-cli, the web page is unable to execute the function getAll() and retrieve the array from the blockchain.
Error printed on the console [F12] is:
Uncaught (in promise) Error: Returned values aren't valid, did it run Out of Gas?
at ABICoder.decodeParameters (index.js:226)
at Contract._decodeMethodReturn (index.js:465)
at Method.outputFormatter (index.js:818)
at Method.formatOutput (index.js:163)
at sendTxCallback (index.js:473)
at eval (index.js:147)
at XMLHttpRequest.request.onreadystatechange (index.js:96)
at XMLHttpRequestEventTarget.dispatchEvent (xml-http-request-event-target.js:34)
at XMLHttpRequest._setReadyState (xml-http-request.js:208)
at XMLHttpRequest._onHttpResponseEnd
I searched in the forums and found that the issue could be with web3 or solc version used.
Could you review and do the needful.