-
Notifications
You must be signed in to change notification settings - Fork 5.1k
sendSignedTransaction failing when calling getTransactionReceipt #1255
Comments
Here is the corresponding geth call where the error comes from: https://github.com/ethereum/go-ethereum/blob/8c33ac10bff32d082facfd274188334a3236a4e7/internal/ethapi/api.go#L1007 |
have you solve this? |
Also ran into the same issue, transactions actually goes through but I get the same error |
I fixed it reverting the last change of that file EthereumCommonwealth/go-callisto@a260568 If you are using Geth from the source code you could make it change |
It looks like this library probably needs to be updated to not make the request until it knows the transaction is available. |
I am sending transactions with MetaMask v.3.13.3 and has the same issue ( |
Turns out you can bypass the method entirely and send it yourself const method = web3.eth.sendSignedTransaction.method;
let payload = method.toPayload([signed.rawTransaction]);
method.requestManager.send(payload, (result) => {
// if result.error, handle
}); |
Can you elaborate about your method? web3js 1.0 documentation does not mention anything about sendSignedTransction.method |
This is basically taken from the source code. There is a number of things going on in there but when you break down the statements this is pretty much all the method does under the hood. |
My code is like this,if get ‘unknown transaction’ wait a moment try again,It‘s work.
|
Recently tried moving from infura to my own Ethereum (geth) node and began running into this problem. Switched back to infura until it's resolved. Will this ultimately be a change in web3 akin to the suggestion by @zhs007 above, or does it need to be a fix to geth? |
Got same error. |
Why does this started to happend today ? It was not being an issue. Weird. Any ideas? |
Got same error, no issues before. It seems it is not related to the application code.
|
Same error here |
After update to Geth 1.8.2 this is no longer the issue for me. |
I got my solution for this. I removed |
same error. |
Error: Failed to check for transaction receipt: |
Using version "web3": "^1.0.0-beta.27" and control the asynchronous behavior of Nodejs while getting the nonce works for me May Be following code helps console.log(txOptions); } //calling method |
This works for me:
|
@Fi1osof
|
@mryellow thanks, i will |
Note same thing different code-style in one above, can return void in the "first" condition:
|
I solved this by this simple code. Thanks @dristic 💪🎉
|
I am signing and calling a
transfer
method on an ERC20 contract like so:The transaction actually works just fine but it fails around here:
I dug in a bit and added some logging and it looks like some code is polling on
getTransactionReceipt
from the server which seems to fail when called for a pending transaction:I'm using geth and node locally to run the transaction and checking the balance appears that the transaction actually completed. I also get a hash of the transaction and see the log in geth for submitting the transaction but web3 never gives me a confirmation.
The text was updated successfully, but these errors were encountered: