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.

Missing timeout option

See original GitHub issue

Hi,

I’ve tried to use this library to scrape about 40 website asynchronously. I do this by using the Promise object returned by ScrapeIt, and then doing something like this

Promise.all(promises).then( function(result){

The problem here is that one of the websites I scrape can be down/slow at unspecified times (I have no control over it). The problem with the library is that ScrapeIt never seems to time out (tried it for a few minutes, but it won’t return and run the Promise.all … code.

Any suggestion on how I can make it timeout (while still using the library promises)? Did I miss any option?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
IonicaBizaucommented, Feb 19, 2017

This should be fixed now.

0reactions
IonicaBizaucommented, Aug 5, 2016
Read more comments on GitHub >

github_iconTop Results From Across the Web

missing-timeout / W3101 - Pylint 2.16.0-dev documentation
Description: Used when a method needs a 'timeout' parameter in order to avoid waiting for a long time. If no timeout is specified...
Read more >
Missing timeout support · Issue #19 · developit/redaxios - GitHub
One way to implement this is when the timeout is provided in the options we'll create an AbortController and pass the singal to...
Read more >
Timeout Missing From Windows Boot Screen
I have a Windows 10 machine that is dual-boot. Using bcdedit, I modified the boot settings so that the legacy boot screen appears...
Read more >
Why doesn't requests.get() return? What is the default timeout ...
What is the default timeout that get uses? The default timeout is None , which means it'll wait (hang) until the connection is...
Read more >
Download tool - Timeout option missing - Alteryx Community
The default connection timeout duration was increased to ten minutes. An option to configure the connection timeout duration was added. You can ...
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