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

Failed to check for transaction receipt when deploying a contract to Parity light node #2213

Closed
spalladino opened this issue Jan 25, 2019 · 8 comments

Comments

@spalladino
Copy link
Contributor

When deploying a contract using web3.js beta 37, connected via an http provider to a Parity light client node (version v2.2.7-stable-b00a21f-20190115/x86_64-linux-gnu/rustc1.31.1), the deployment fails with the following error:

C = new web3.eth.Contract(abi)
C.deploy({ data }).send({ from, gas, gasPrice: 21e9 })
Error: Failed to check for transaction receipt:
{}
    at Object._fireError (.../node_modules/truffle/build/webpack:/~/web3-utils/src/index.js:56:1)

Versions:

node --version
v10.13.0
npm --version
6.4.1
web3.version
'1.0.0-beta.37'
@nivida nivida added the Needs Clarification Requires additional input label Jan 27, 2019
@spalladino
Copy link
Contributor Author

@nivida let me know what kind of further clarification is needed! I found the code of the contract to be irrelevant to this bug, but I can provide it anyway if it helps.

@nivida
Copy link
Contributor

nivida commented Feb 7, 2019

I will test it asap with the latest version of web3.js and give you further details. Sorry for the late response.

@mschristensen
Copy link

I'm also experiencing this issue but when sending a signed transaction like:

        logger.info(`[WRITE] Sending signed transaction...`);
        const signedTransaction = await ownerAccount.signTransaction({
            data: tx.encodeABI(),
            from: ...,
            to: ...,
            gas: gas.toString(),
            gasPrice: price.toString(),
        });
        const receipt = await web3MainNet.eth.sendSignedTransaction(signedTransaction.rawTransaction);

gives:

info: [WRITE] Sending signed transaction...
(node:22491) UnhandledPromiseRejectionWarning: Error: Failed to check for transaction receipt:
{}
    at Object._fireError (/home/ubuntu/<project>/node_modules/web3-utils/src/index.js:56:17)
    at /home/ubuntu/<project>/node_modules/web3-core-method/src/index.js:260:23
    at <anonymous>

node version: v8.12.0
npm version: 6.4.1
web3 version: ^1.0.0-beta.30

@nivida nivida added more information needed and removed Needs Clarification Requires additional input labels Apr 16, 2019
@nivida
Copy link
Contributor

nivida commented Apr 16, 2019

Does this error still occur with the latest version of Web3?

@nivida
Copy link
Contributor

nivida commented Apr 25, 2019

Closed because of the missing answer of the creator of this issue.

@nivida nivida closed this as completed Apr 25, 2019
@d10r
Copy link

d10r commented Oct 16, 2019

As I've reported in #1423 (comment), it still happens 1.2.1. In my case while connected to a full node.

@MoMannn
Copy link

MoMannn commented Nov 29, 2019

Same is happening to me on parity (works with geth).

@kael-shipman
Copy link

This appears to still be happening for me.

  • Web3: v0.20.6 and also v1.2.4
  • Parity: v2.5.11-stable light node

Would love some clarity on why this is happening, although I believe it's likely Parity's fault.

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

6 participants