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

Suboptimal UX on Too Many Requests to forking origin #631

Open
FabijanC opened this issue Oct 21, 2024 · 1 comment
Open

Suboptimal UX on Too Many Requests to forking origin #631

FabijanC opened this issue Oct 21, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@FabijanC
Copy link
Contributor

Coming from this Discord message:

Hello, I ran into a problem, when invoking a write transaction on devnet I get this error: Failed to read from state: Error in communication with origin: Received response with status: 429 Too Many Requests.. Has anyone seen this before?

this is how we started it:

export STARKNET_RPC='<URL for free rpc nethermind mainnet-juno>'
sudo docker run --network host shardlabs/starknet-devnet-rs --fork-network $STARKNET_RPC --seed 69420
@FabijanC
Copy link
Contributor Author

So, it seems that there were too many requests to the forking origin made by the Devnet instance. Here are some thoughts:

  1. It could be a temporary network issue, so try re-running your program.
  2. If forking (i.e. interaction with the origin behind $STARKNET_RPC) is not crucial for your use case, feel free to omit the --fork-network parameter.
  3. Change the forking origin URL
  4. Consider adding short sleeps to your program which communicates with Devnet
  5. The Devnet team can consider introducing a better handling for the 429 Too Many Requests scenario, such as automatically re-sending the request after waiting for a short period of time, or simply improving the returned error message.

@FabijanC FabijanC added the enhancement New feature or request label Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: 🆕 New
Development

No branches or pull requests

1 participant