Fetch (isomorphic-fetch) default timeout
See original GitHub issueHello,
I’m using your sdk with isomorphic-fetch
and I encountered an issue.
The default value for an http timeout in node-fetch
is 0 wich is equivalent to no timeout at all.
My application stayed stuck in a files list folder
call for an obscure reason (the same call using curl was successfull though)
Would it be possible to add a default http timeout value or to allow us to configure it ?
Cheers
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
any possible way to include timeout on fetch()? #48 - GitHub
FWIW, I've opened an issue whatwg/fetch#951 with a proposal for a timeout option that solves 90% of use cases, in case anyone's interested....
Read more >Fetch API request timeout? - javascript - Stack Overflow
I want to know what is the default timeout for this? and how can we set it to a particular value like 3...
Read more >How to Timeout a fetch() Request - Dmitri Pavlutin
By default a fetch() request timeouts at the time setup by the browser. In Chrome, for example, this setting equals 300 seconds. That's...
Read more >isomorphic-fetch - npm
Isomorphic WHATWG Fetch API, for Node & Browserify. Latest version: 3.0.0, last published: 2 years ago. Start using isomorphic-fetch in your ...
Read more >How to use the isomorphic-fetch.Response function in ... - Snyk
To help you get started, we've selected a few isomorphic-fetch.Response examples, based on popular ways it is used in public projects.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks! I’m sending this along to the team to see if we can add some better timeout functionality/behavior like this.
Regarding the listFolder issues, I also suspect that’s #174, but please do open another issue if you find something else.
The Typescript issue appears be #199.
For what it’s worth, I’ve also noticed that filesListFolder sometimes becomes ‘stuck’ with no error and no response. I haven’t been able to reliably reproduce it so I’ve not yet filed an issue but it’s possibly related to your problem. Issue seems to occur when I add a decently large number of files (~100) to a new folder, then try to list its contents. Could be connected to #174.