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.

Hey,

Any reason why timeout doesn’t seem to function? I’m trying to test proxies from an array, I set the timeout variable but doesn’t do anything.

				request(
					'https://api.ipify.org?format=json',
					{
						proxy: 'http://' + value,
						headers: { Connection: 'close' },
						timeout: 10000
					},```

Thanks

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:8

github_iconTop GitHub Comments

3reactions
it-fmcommented, May 23, 2019

same problem here, you can try to manually cancel the request using

let requestSent = request(options, callback)
setTimeout(() => {
      console.log("cancel")
      requestSent.abort()
}, 3000);
0reactions
stale[bot]commented, Nov 9, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Fix Proxy Timeout Errors? - Limeproxies
When a server takes a long time to acknowledge a request made from a client (web browser) or another server, the proxy timeout...
Read more >
Why Does Your Proxy Timeout (How To Fix Proxy ... - Rayobyte
1. Poor internet connection. A bad internet connection can be one reason for a proxy timeout error like “connection timed out Firefox.” First,...
Read more >
Timeout Values (Sun Java System Web Proxy Server 4.0.8 ...
A high proxy timeout value commits a valuable proxy thread to a potentially down client for a long time. A low timeout value...
Read more >
Increasing Apache Proxy Timeout - IBM
Increasing Apache Proxy Timeout. With use cases that cause mongrels to execute longer queries, users may experience proxy errors because Apache is not...
Read more >
HTTPS-Proxy: General Settings - WatchGuard Technologies
This topic describes how in the HTTPS proxy action general settings configuration, you can configure connection timeout, alarm, and logging settings.
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