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

(anvil): forge script breaks when run with Blast mainnet RPC against anvil forks #7560

Closed
2 tasks done
Tracked by #8269
Sabnock01 opened this issue Apr 4, 2024 · 3 comments
Closed
2 tasks done
Tracked by #8269
Labels
A-docs Area: docs C-anvil Command: anvil

Comments

@Sabnock01
Copy link
Contributor

Component

Anvil

Have you ensured that all of these are up to date?

  • Foundry
  • Foundryup

What version of Foundry are you on?

forge 0.2.0 (dbc48ea 2024-04-03T00:17:03.697365187Z)

What command(s) is the bug in?

anvil --fork-url

Operating System

Linux

Describe the bug

Whenever running a forge script against a forked Blast mainnet anvil instance (created with anvil --fork-url $BLAST_RPC) the output of the scripts will give the following error:

Error:
builder error

Context:
- relative URL without a base

This behavior is consistent across all Blast mainnet RPC's.
It is not the case for Blast Sepolia RPC's which work without issue.

It is also not the case when running a forge script against the RPC itself, as opposed to the anvil instance with --rpc-url http://localhost:8545

@Sabnock01 Sabnock01 added the T-bug Type: bug label Apr 4, 2024
@mattsse
Copy link
Member

mattsse commented Apr 4, 2024

do you have a repro for this we can use for debugging

cc @zerosnacks @yash-atreya

@Sabnock01
Copy link
Contributor Author

This was a consistent issue on Wednesday for all Blast mainnet RPC's but since then I've not encountered it and have not been able to repo. I assume it was something on their end and not Foundry. In any case, the error message seems misleading.

@zerosnacks zerosnacks added the T-to-reproduce Type: requires reproduction label Jun 27, 2024
@zerosnacks zerosnacks added the C-anvil Command: anvil label Jun 27, 2024
@zerosnacks zerosnacks added A-docs Area: docs and removed T-bug Type: bug T-to-reproduce Type: requires reproduction labels Jul 12, 2024
@zerosnacks
Copy link
Member

I think it makes sense to turn this ticket into a error improvement feature request but considering the originating error is from https://github.com/servo/rust-url/blob/54346fa288e16b25b71c45149d7067c752b450e0/url/src/parser.rs#L84 (as used by reqwest) I don't see an actionable item here. Considering the original issue has been resolved I'll mark it as so.

Feel free to re-open if you disagree

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-docs Area: docs C-anvil Command: anvil
Projects
None yet
Development

No branches or pull requests

3 participants