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

Read call on forked chain times out #315

Open
eyezick opened this issue Jan 9, 2025 · 0 comments
Open

Read call on forked chain times out #315

eyezick opened this issue Jan 9, 2025 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@eyezick
Copy link

eyezick commented Jan 9, 2025

Environment information

  • Operating System: macOS Sonoma 14.1
  • Supersim Version: Commit

Foundry version.
forge 0.3.0 (5a8bd89 2024-12-20T08:45:53.204298000Z)

Describe the bug
Large read calls on forked OP Mainnet time out consistently. Simpler calls to the same contract return data successfully.

Steps to reproduce

  1. Setup docker per README.
  2. Create env file in same directory per below and add with your own OP mainnet RPC SUPERSIM_RPC_URL_OP=https://....
  3. Run docker with config
docker run --rm -it -p 4444:4444 --env-file my-rpc.env supersim:latest fork  --l2.host=0.0.0.0 --l2.starting.port=4444 --chains=op,mode
  1. Observe console output confirming RPC override detected rpc override name=op
  2. Make calls.
% cast call 0x7F6D3A4c8a1111DDbFe282794f4D608aB7Cb23A2 "MAX_TOKENS()(uint256)" --rpc-url http://localhost:4444                                                                           
2000
% cast call 0x7F6D3A4c8a1111DDbFe282794f4D608aB7Cb23A2 "tokens(uint256,uint256,address,address[])" 1000 0 0x0000000000000000000000000000000000000000 "[]"  --rpc-url http://localhost:4444
Error: error sending request for url (http://localhost:4444/)

Context:
- Error #0: error sending request for url (http://localhost:4444/)
- Error #1: operation timed out

Comments
I was able further to repro this on our web app, where the same call hangs indefinitely. Wanted to note that the private RPC var I'm using is the same that we use on our web app so it already handles these size calls in dev/production so it should be able to handle them when used with supersim.
Ref link for function

@eyezick eyezick changed the title Read call on forked chain hangs Read call on forked chain times out Jan 9, 2025
@jakim929 jakim929 added the bug Something isn't working label Jan 10, 2025
@jakim929 jakim929 self-assigned this Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants