question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Fetch (isomorphic-fetch) default timeout

See original GitHub issue

Hello,

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:closed
  • Created 5 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
greg-dbcommented, Jul 9, 2018

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.

1reaction
davidmerfieldcommented, Jul 9, 2018

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found