-
Notifications
You must be signed in to change notification settings - Fork 45
Open
Description
The use of retryCount: 012 in bundler and paymaster transports in @zerodev/sdk results in increased user-facing errors.
Steps to reproduce:
- Prepare a dev machine with a network throttler (e.g., Network Conditioner.
- Set up a sample ZeroDev project.
- Open an interface where you can submit a user operation.
- Temporarily interrupt the internet connection (e.g., in Network Conditioner, set "100% Loss" condition).
- Attempt to submit the userop.
- Immediately after, resume internet connectivity.
Expected: The transport should retry on network errors.
Observed: An error is thrown immediately.
Triage:
- The cause of the issue is the
retryCount: 0in transport initialization12. The default is 3. retryCount > 0applies only to transport errors. If the request completed with an RPC error,shouldRetrywill returnfalseand the request will not be retried.- Further, viem will obey a numeric
Retry-Afterheader value (although the backend may need to add that header toAccess-Control-Request-Headersfor it to be readable by client).
Footnotes
Metadata
Metadata
Assignees
Labels
No labels