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

Error: Failed to check for transaction receipt #95

Open
JCSanPedro opened this issue Mar 26, 2018 · 4 comments
Open

Error: Failed to check for transaction receipt #95

JCSanPedro opened this issue Mar 26, 2018 · 4 comments

Comments

@JCSanPedro
Copy link

Not sure if this is an error with web3 or the http provider, but I'm seeing this error whenever I use the PromiEvent feature for sending transactions.

Example:

contract.methods.transfer(recipient, value).send({ from: web3.eth.accounts[0], gas: web.utils.toHex(1000000) })
.once('transactionHash', function (txHash) {
  console.log('transactionHash', txHash);
})
.once('confirmation', function(confirmationNumber, receipt) {
  console.log('confirmation', confirmationNumber, receipt);
})
.once('receipt', function(receipt) {
  console.log('receipt', receipt);
})
.once('error', function(error) {
  console.log('error', error);
});

After a few seconds, I see the transactionHash event occur, then eventually the confirmation and receipt event as well. The transaction does actually go through, though a few seconds after receiving the confirmation, I get this error:

Error: Failed to check for transaction receipt

It seems to be similar to the issue posted here web3/web3.js#1255

@aj0strow
Copy link

I'm also getting this error.

web3 Error: Failed to subscribe to new newBlockHeaders to confirm the transaction receipts.

@sivachaitanya
Copy link

how did you solve this ?

@barrard
Copy link

barrard commented Aug 30, 2018

I just got this same error
infurating...

cuongdo pushed a commit to OriginProtocol/origin-js that referenced this issue Sep 12, 2018
This adds the `pause` and `unpause` actions to the token CLI, which
pause and unpause token transfers. These may only be called by the token
contract owner.

This also adds `sendTransaction` to the token library, which sends an
Ethereum transaction and polls for the receipt. This is necessary
workaround for an issue where the normal `contract.methods.MyMethod.send()`
function never returns a transaction receipt for certain calls:

INFURA/infura#95

Manually tested the token faucet on Rinkeby & localhost to ensure that it still
works.
cuongdo added a commit to OriginProtocol/origin-js that referenced this issue Sep 12, 2018
* Add pause & unpause to token_cli

This adds the `pause` and `unpause` actions to the token CLI, which
pause and unpause token transfers. These may only be called by the token
contract owner.

This also adds `sendTransaction` to the token library, which sends an
Ethereum transaction and polls for the receipt. This is necessary
workaround for an issue where the normal `contract.methods.MyMethod.send()`
function never returns a transaction receipt for certain calls:

INFURA/infura#95

Manually tested the token faucet on Rinkeby & localhost to ensure that it still
works.

* Code review fixes
@semuelle
Copy link

+1

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

5 participants