Answer the question
In order to leave comments, you need to log in
Why does nodejs sometimes give ETIMEDOUT on requests after moving to another server?
The application worked for a long time on Ubuntu 16.04.6 LTS. Nodejs version 14.17.4
Number of cores - 1, RAM - 1 GB
moved recently. Debian 11, it became 2 cores of 2000 Hz, RAM - 4 GB, the node version is the same as 14.17.4
Now I began to notice that when making requests to third-party services (API), (request or request-promise) it gives an error:
{"name":"RequestError","message":"Error: connect ETIMEDOUT <ip стороннего сервиса>...
traceroute to 5.4.3.2 (5.4.3.2), 30 hops max, 60 byte packets
1 serrv2422vps (80.187.14.36) 0.059 ms 0.034 ms 0.038 ms
2 * * *
3 * * *
4 * * *
Answer the question
In order to leave comments, you need to log in
Timeout when calling connect. This is, in principle, normal and quite likely in any network applications. This may indicate the unavailability of the remote side or poor communication quality.
A common response to such an error would be to retry the operation or terminate the application with an error.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question