-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
bug(forge script
): Failure on receiving a receipt, server returned a null response when a non-null response was expected
#9636
Comments
tryna add |
Hi @Aliceonly What blockchain are you targeting? Are the RPCs you are using protected by an API key or are they public? Does it consistently fail on that specific transaction, around the same time or at around a specific transaction count? |
forge script
Failure on receiving a receipt, server returned a null response when a non-null response was expectedforge script
): Failure on receiving a receipt, server returned a null response when a non-null response was expected
Thx for reply, I target Berachain bArtio, it mostly fail on broadcasting batch txs in one script. Also, I tried diff rpcs in private(like quicknode) and public, same situation. It may be that the state of this blockchain is not synchronised in a timely manner or rpc not stable causing the rpc return null of tx receipt tentatively, but it will fails all the script, esp in github action it's fatal |
I see a similar failure in https://github.com/foundry-rs/foundry/actions/runs/12664378135/job/35292428706#step:12:283 but it's passing on next attempt, cannot reproduce locally either... Maybe we should not exit on first failure here but retry couple of times as the receipt could not be available right away? foundry/crates/script/src/progress.rs Lines 213 to 217 in ad09bbe
Le: probably this started to manifest more from when introducing better error handling (previously script was just hanging waiting for receipt if error) d402afd#diff-40b142bf1cc0e034c56533fad30c71161b2cc0b4dd4d6a72468e0649e3c7002dR52 |
Agree, it will happen more frequently on online chain cuz many rpc and testnet are not stable. It fails whole broadcast prograss, esp in workflow that's annoying |
for context: this error is most likely coming from here https://github.com/alloy-rs/alloy/blob/b9b2da02bfac649bd06b30bd970ea63470a23d70/crates/provider/src/heart.rs#L238 which means that transaction was included into latest block but receipt for it is still not available |
Component
Forge
Have you ensured that all of these are up to date?
What version of Foundry are you on?
uses: foundry-rs/foundry-toolchain@v1
What command(s) is the bug in?
forge script
Operating System
Linux
Describe the bug
I run workflow on ubuntu-22.04
there're like 100+ txs in script
always got error:
but tx has been comfirmed onchain, also I tried serval rpcs and failed
The text was updated successfully, but these errors were encountered: