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

Refactor fetchJson to handle custom timeout #318

Closed
wants to merge 1 commit into from

Conversation

Himasnhu-AT
Copy link

@Himasnhu-AT Himasnhu-AT commented Oct 3, 2024

Fixes ISSUES: #287

Found this, apparently the issue isn't closed nodejs/undici#1373

In the Chromium browser, the default timeout is somewhere around 300 second
whereas in node, it is around 30 sec.

possible solution: update the timeouts to prevent this issue

Important

A similar approach to be taken for the browser, to resolve the issue: #138
Possible solution: Have npm package, which lets the user define their own timeout, or maybe pass args to set the timeout

@nezaj
Copy link
Contributor

nezaj commented Oct 11, 2024

Thanks for this PR! Great ideas. We decided instead of having an additional parameter, we'll increase the cap to 5 minutes to match Chrome. #345

@stopachka stopachka closed this Oct 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Default fetch timeout too short
3 participants