Questions tagged [connect-timeout]

Request timeout middleware for NodeJs Connect/Express.

Times out a request in the Connect/Express application framework.
See https://github.com/expressjs/timeout.

21 questions
13
votes
1 answer

Http request timeout at 2 minutes in NGINX 502 bad gateway in Node app

I’m been scratching my head on this timeout issue and hope to get some helps. I have a http request that might take 2.5 minutes to return the response. I have timeout handling in Angular for 3 minutes, and NodeJS for 3 minutes as well. My nginx…
Brian Hsu
  • 387
  • 1
  • 4
  • 14
3
votes
0 answers

Debug nodejs pipe ERR_EMPTY_RESPONSE

I have an single page app running off nodejs + express 4.0, the app is a filtering program that let the user select some target population for data analysis then once the user click submit, the app will send the filter as a JSON to the node server…
Gäng Tian
  • 1,588
  • 2
  • 18
  • 26
2
votes
1 answer

How to customise time-out response using Express and connect-timeout?

I want to customise the response sent to the users when a timeout error is fired. More specifically, I want to redirect them to a static page explaining why a timeout error has been fired. I want to write something like : var express =…
ldc
  • 306
  • 1
  • 14
1
vote
0 answers

Nodejs times out POST request with files bigger than 6gigabytes due to server timeout

Im using multer to upload FormData to server,file binary alongside some text/objects. Problem arises with files above 4~5gbs where post request is in pending state and than after a while it returns with POST http://localhost:5000/upload…
MichalZard
  • 69
  • 6
1
vote
0 answers

Max retries exceeded with differents URL in requests

I have some problems with a script that I am doing to facilitate a process that I have at work. The script consists of listing each website that you have in a txt file, and making another list but with different paths for the URLs Finally I make a…
1
vote
0 answers

Random org.apache.http.conn.ConnectTimeoutException in old elasticsearch(1.X) using the Jest client

I am using very old Elasticsearch 1.x I know its EOL but no choice here and as that time official ES client was not there, using Jest client to interact with Elasticsearch and occassionaly seeing the timeout exception when Jest is trying to…
user12056260
1
vote
1 answer

How to implement Spring Retry for SocketTimeoutException from Rest Template

I want to use Spring retry functionality in case of 'SocketTimeoutException' from rest template. but spring Rest template throwing like bellow: org.springframework.web.client.ResourceAccessException: I/O error: Read timed out; nested exception is…
1
vote
0 answers

php: pecl_http timeout < 1 is not obeyed

I am using 2.5.5 version of pecl_http library in my code (https://mdref.m6w6.name/http). $httpRequest = new \http\Client\Request("GET", $url); $httpRequest->setOptions(["timeout"=>0.5]); $client = new…
ssk
  • 9,045
  • 26
  • 96
  • 169
1
vote
1 answer

node connect-timeout: how to suppress "ServiceUnavailableError: Response timeout" log message

I'm using the connect-timeout module. When the timeout fires, it seems to dump the following error message to the console: ServiceUnavailableError: Response timeout at IncomingMessage.
drmrbrewer
  • 11,491
  • 21
  • 85
  • 181
1
vote
1 answer

Express timeout issue, always getting back response,when forcing blocking operation

I'm trying out the connect-timeout module. I've tried hitting a simple route from the browser var timeout = require('connect-timeout'); app.use(timeout('1s')); app.use(haltOnTimedout); app.get('/timeout', function (req, res) { for (var i =…
SuperUberDuper
  • 9,242
  • 9
  • 39
  • 72
1
vote
1 answer

Express middleware "connect-timeout" causes "Can't set headers after they are sent."

My code: timeout = require('connect-timeout') app.get('/', timeout('5s'), function(req, res){ ##DO SOMETHING 1 ##DO SOMETHING 2 ##DO SOMETHING 3 res.send('ok'); ##line 7 }); When user requesting. Node.js processes "DO SOMETHING1-3". But…
bookotl
  • 68
  • 7
1
vote
2 answers

express.js 4.12 connect-timeout upper limit?

I am using "connect-timeout": "^1.7.0" as a top-level middleware in my express.js 4.12 ("express": "^4.12.3") app. I have no problem in using it as such. I can set the timeout to 50 seconds, 5 seconds, 1 second, all of which function perfectly fine.…
Chris Covney
  • 819
  • 1
  • 7
  • 11
1
vote
1 answer

Express.js connect-timeout. how to handle when timout fire,where it generate error

When I use the connect-timeout when timeout fire, it shows [2015-07-31 11:46:18.983] [ERROR] console - ServiceUnavailableError: Response timeout at IncomingMessage. (/opt/data/nlb-server-dev/node_modules/connect-timeout/index.js:69:8) …
aidong xia
  • 25
  • 1
  • 2
0
votes
0 answers

HTTPSConnectionPool(host='gg.deals', port=443): Max retries exceeded with url: /games/?page=1

import requests from bs4 import BeautifulSoup url = f'https://gg.deals/games/?page=1' response = requests.get(url, timeout=30) Execution is not possible in an AWS Lambda environment where VPC configuration is not set up. Even after taking…
helllllo
  • 1
  • 1
0
votes
2 answers

Set a connect timeout on azure api management

I'm looking for a way to set explicitly a connect timeout (not a timeout for my backend service) on APIs hosted on azure APIm anyone has already tried ?
Seb
  • 3,602
  • 8
  • 36
  • 52
1
2