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

Non existent RPC URL fails after multiple retries without original error message #6913

Closed
2 tasks done
DaniPopes opened this issue Jan 26, 2024 · 1 comment · Fixed by #7017
Closed
2 tasks done

Non existent RPC URL fails after multiple retries without original error message #6913

DaniPopes opened this issue Jan 26, 2024 · 1 comment · Fixed by #7017
Assignees
Labels
T-bug Type: bug

Comments

@DaniPopes
Copy link
Member

DaniPopes commented Jan 26, 2024

Component

Forge, Cast

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

  • Foundry
  • Foundryup

What version of Foundry are you on?

forge 0.2.0 (c61dc80 2024-01-26T00:21:42.044364394Z)

What command(s) is the bug in?

forge t --rpc-url doesnotexist

Operating System

Linux

Describe the bug

forge init test_
cd test_
forge t --rpc-url doesnotexist

Expected: fails instantly with not found error

Actual: retries 9 times, once every 800ms, fails with generic error:

Error:
Could not instantiate forked environment with fork url: doesnotexist

Context:
- Error #0: Failed to get latest block number
- Error #1: Error during transport: Max retries exceeded
- Error #2: Max retries exceeded
- Error #3: Max retries exceeded

Traces:

2024-01-26T19:41:19.676575Z TRACE alloy_rpc_client::call: Polling RpcCall self.state=Prepared
2024-01-26T19:41:19.676584Z TRACE poll: alloy_rpc_client::call: Polling prepared
2024-01-26T19:41:19.676595Z TRACE alloy_rpc_client::call: Polling RpcCall self.state=AwaitingResponse
2024-01-26T19:41:19.676597Z TRACE poll: alloy_rpc_client::call: Polling awaiting
2024-01-26T19:41:19.676624Z TRACE poll: foundry_common::provider::tower: retrying request due to Transport(Custom(TransportError(Transport(Custom(Os { code: 2, kind: NotFound, message: "No such file or directory" })))))

...
@DaniPopes DaniPopes added the T-bug Type: bug label Jan 26, 2024
@gakonst gakonst added this to Foundry Jan 26, 2024
@github-project-automation github-project-automation bot moved this to Todo in Foundry Jan 26, 2024
@mattsse
Copy link
Member

mattsse commented Jan 27, 2024

@Evalir looks like we always retrying regardless of the error?

we should fail immediately on non retryable errors

@github-project-automation github-project-automation bot moved this from Todo to Done in Foundry Feb 6, 2024
@jenpaff jenpaff moved this from Done to Completed in Foundry Sep 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-bug Type: bug
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants