Hello @thecil - Please help!!!
I keep getting this error msg when I try to compile, lmk how to best fix this error. Thanks a million!
truffle(develop)> instance.getKitty(0)
Thrown:
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.
at evalmachine.<anonymous>:0:10
at sigintHandlersWrap (vm.js:276:15)
at Script.runInContext (vm.js:131:14)
at runScript (/usr/local/lib/node_modules/truffle/build/webpack:/packages/core/lib/console.js:364:1)
at Console.interpret (/usr/local/lib/node_modules/truffle/build/webpack:/packages/core/lib/console.js:379:1)
at bound (domain.js:415:14)
at REPLServer.runBound [as eval] (domain.js:428:12)
at REPLServer.onLine (repl.js:665:10)
at REPLServer.emit (events.js:196:13)
at REPLServer.EventEmitter.emit (domain.js:471:20)
at REPLServer.Interface._onLine (readline.js:314:10)
at REPLServer.Interface._line (readline.js:691:8)
at REPLServer.Interface._ttyWrite (readline.js:1011:14)
at REPLServer.self._ttyWrite (repl.js:742:7) {
hijackedStack: "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.\n at ' +
'ABICoder.decodeParametersWith ' +
'(/usr/local/lib/node_modules/truffle/build/webpack:/node_modules/web3-eth-abi/lib/index.js:297:1)\n' +
' at ABICoder.decodeParameters ' +
'(/usr/local/lib/node_modules/truffle/build/webpack:/node_modules/web3-eth-abi/lib/index.js:284:1)\n' +
' at Contract._decodeMethodReturn ' +
'(/usr/local/lib/node_modules/truffle/build/webpack:/node_modules/web3-eth/node_modules/web3-eth-contract/lib/index.js:469:1)\n' +
' at Method.outputFormatter ' +
'(/usr/local/lib/node_modules/truffle/build/webpack:/node_modules/web3-eth/node_modules/web3-eth-contract/lib/index.js:759:1)\n' +
' at Method.formatOutput ' +
'(/usr/local/lib/node_modules/truffle/build/webpack:/node_modules/web3-eth/node_modules/web3-core-method/lib/index.js:146:1)\n' +
' at sendTxCallback ' +
'(/usr/local/lib/node_modules/truffle/build/webpack:/node_modules/web3-eth/node_modules/web3-core-method/lib/index.js:522:1)\n' +
' at ' +
'/usr/local/lib/node_modules/truffle/build/webpack:/node_modules/web3/node_modules/web3-core-requestmanager/lib/index.js:307:1\n' +
' at ' +
'/usr/local/lib/node_modules/truffle/build/webpack:/packages/provider/wrapper.js:107:1\n' +
' at XMLHttpRequest.request.onreadystatechange ' +
'(/usr/local/lib/node_modules/truffle/build/webpack:/node_modules/web3/node_modules/web3-providers-http/lib/index.js:98:1)\n' +
' at XMLHttpRequestEventTarget.dispatchEvent ' +
'(/usr/local/lib/node_modules/truffle/build/webpack:/node_modules/xhr2-cookies/dist/xml-http-request-event-target.js:34:1)\n' +
' at ' +
'XMLHttpRequest.exports.modules.996763.XMLHttpRequest._setReadyState ' +
'(/usr/local/lib/node_modules/truffle/build/webpack:/node_modules/xhr2-cookies/dist/xml-http-request.js:208:1)\n' +
' at ' +
'XMLHttpRequest.exports.modules.996763.XMLHttpRequest._onHttpResponseEnd ' +
'(/usr/local/lib/node_modules/truffle/build/webpack:/node_modules/xhr2-cookies/dist/xml-http-request.js:318:1)\n' +
' at IncomingMessage.<anonymous> ' +
'(/usr/local/lib/node_modules/truffle/build/webpack:/node_modules/xhr2-cookies/dist/xml-http-request.js:289:47)\n' +
' at IncomingMessage.emit (events.js:201:15)\n at ' +
'IncomingMessage.EventEmitter.emit (domain.js:494:23)\n at endReadableNT ' +
'(_stream_readable.js:1130:12)'
}