web3 / web3.js

Collection of comprehensive TypeScript libraries for Interaction with the Ethereum JSON RPC API and utility functions.
https://web3js.org/
Other
19.3k stars 4.95k forks source link

Error: Failed to check for transaction receipt #3556

Closed justintim-es closed 4 years ago

justintim-es commented 4 years ago
web3.eth.personal.unlockAccount('0x12AdF37d82D978fD72bfcC95Ca09C0D91Bb4F4d3', password).then(unlock => {
    if(unlock) {
        web3.eth.sendTransaction({
            value: '18835938971557730',
            from: '0x12AdF37d82D978fD72bfcC95Ca09C0D91Bb4F4d3',
            to: '0x478a286CD2Cc5D997c2AA45C6CA79A2b7c1676eD'
        }).then(console.log)
    }
})

Gives me the follwing error

(node:20048) UnhandledPromiseRejectionWarning: Error: Failed to check for transaction receipt:
{}
    at Object._fireError (C:\Users\noahv\documents\cryschyp\backend\nodejs\node_modules\web3-utils\src\index.js:57:17)
    at C:\Users\noahv\documents\cryschyp\backend\nodejs\node_modules\web3-core-method\src\index.js:272:27
(node:20048) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)
(node:20048) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the 
Node.js process with a non-zero exit code

I first posted an issue on openethereum, but they have sent me here web3 version

web3@1.2.8
cgewecke commented 4 years ago

@noahsalvadordenjo

Believe this is a race-condition issue at OE, documented in openethereum 10672. It's also reported here at #2213.

Do you see this with any other client? Can you provide any additional details about your OE client setup?

justintim-es commented 4 years ago

Openethreum version: v3.0.0 Operating system: linux Fully synchronized: no Restarted: yes

Im retrying now with v3.0.1

justintim-es commented 4 years ago

I ran this in the console

./openethereum --jsonrpc-interface "ip" --jsonrpc-apis "all" --js
onrpc-hosts "all" --jsonrpc-cors "all"
cgewecke commented 4 years ago

@noahsalvadordenjo

Apologies, if this is only happening on OE and OE 10762 remains unresolved I think it's a problem they'll have to address.

Closing as duplicate of #2213.