alchemy-sdk-js
alchemy-sdk-js copied to clipboard
Add settings to control request timeout
When using alchemy-sdk in my project, sometimes the call just stuck there for a long time, I'd like a setting for timeout seconds, so I can have better control on it with timeout & maxRetries
@wong2 thanks for the feature request! Are you primarily using the NFT APIs or the core json-rpc APIs?
NFT APIs
NFT APIs
Hey @thebrianchen, I know some devs who'd be interested in working on this. Is there a budget for fixing this issue, and if so, how much?
I'd put this issue up on OpenQ.
Thanks!
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs
Axios documentation, according to the documentation a timeout variable in the request config which can be set in the following way, timeout: <desired timeout>.
This line can be added in the axios request function sendAxiosRequest where the config is initialized here
This can also be added while initializing the SDK or even while calling a specific API (can be included as an argument), instead of having a default static value.
Would be happy to work on this if required.
@Abbaskt We'd love to welcome any PRs you may have time for. Otherwise, we'll likely to get to this when it's more prioritized. Thanks!