Questions tagged [etimedout]

This tag is for you when you get ETIMEDOUT errors trying to connect to a server or some other network-accessible service. If you're trying to connect to a service (redis, postgreSQL ...) show the service.

What is this?

ECONNREFUSED is an error from your operating system. It may come from some network communication protocol, or in rare cases from communication with other devices.

It means your operation did not complete within an allotted time, typically 30-60 seconds.

A related error is . That one comes back promptly.

It means your request never arrived at the target machine or service, or that the machine or service completely ignored it.

Firewalls can cause this error, as can disconnected or switched-off servers.

Denial-of-service attacks on host machines can cause legitimate clients of those machines to get ETIMEDOUT errors.

Specific troubleshooting steps

  • You do not know you can reach the host machine you're connecting to: that's the nature of timeouts.
  • You cannot tell whether the service you want is running on the host machine.
  • You cannot tell whether you have a username / password problem; those don't generate ETIMEDOUT errors.
  • If you have a shell (command line program) try ping example.com where example.com is the machine you want to connect to. If that doesn't work you have a network connection problem.

Make sure you use the correct hostname or IP address for your target machine.

12 questions
2
votes
0 answers

Express and mysql Error connect ETIMEDOUT using MAC

I start recently in the express and I want to connect my express with MySQL. But every time I made a request on postman I have this error. The database, table, and content are created and I can use them on the terminal. Can someone help…
1
vote
0 answers

Sometimes I get `connect ETIMEDOUT 12.123.12.123:443` when calling an external endpoint. (Usually works fine)

I am calling an external endpoint using node js' axios library and usually it works, but for some reason sometimes I get this response back: AxiosError: connect ETIMEDOUT 12.123.12.123:443 at TCPConnectWrap.afterConnect [as oncomplete]…
Radu
  • 83
  • 1
  • 8
1
vote
3 answers

How can i handle "connect ETIMEDOUT" error when the URL is overloaded "Bottlenecks"?

I am posting request with NodeJs. Here is my code: var request = require('request'); var rp = require('request-promise'); async function sendRequest(obj){ try{ // TRY STARTS HERE var requestTarget = await rp({ method: 'POST', …
Rida Helwani
  • 11
  • 1
  • 1
  • 2
0
votes
2 answers

How Can I Resolve the ETIMEDOUT Error During Next.js Project Creation?

I'm attempting to create a new Next.js project on my local machine using the following command: npx create-next-app@latest . I've selected TypeScript, ESLint, Tailwind CSS, and other default options, but during the installation of dependencies, I…
Omar Afet
  • 23
  • 3
0
votes
1 answer

REST API Response: (http_request_failed) cURL error 28: Connection timed out after 10001 milliseconds

Currently I am facing an issue when creating a WordPress page using docker-compose. For some actions like importing a theme, i get the famous cURL error 28. Also the site-health is displaying: REST API Endpoint:…
A. Mair
  • 21
  • 2
0
votes
1 answer

Getting port 443 after 127226 ms: Couldn't connect to server

I am integrating the third party API but getting port 443 after 127226 ms: Couldn't connect to server GuzzleHttp\Exception\ConnectException cURL error 28: Failed to connect to xxxxx.xx port 443 after 127226 ms: Couldn't connect to server (see…
0
votes
0 answers

npm are not working even if i delete the node and install again

I can't install new dependencies of our project in my computer. When i try to reinstall Node.js it does not fix the issue. PS C:\Users\djhay\Desktop\RCI-FRONTEND\richwell_app-frontend> npm install npm ERR! code ETIMEDOUT npm ERR! syscall connect npm…
Tine14
  • 1
0
votes
0 answers

Weatherstack API keeps timing out for me when using VS Code

So, I was making a simple weather app, and decided that I will use Weatherstack API to get the weather information, I signed up, tried the API from the browser (sometimes it works perfectly, sometimes it takes very long time and basically times…
0
votes
0 answers

Hyperledger fabric2.5 peer lifecycle chaincode approveformyorg Error: timed out waiting for txid on all peers

I am running HyperledgerFabric 2.5 and I would like to deploy a 3 organizations network with multi peers when I commitChaincodeDefinition i faced an "Error: timed out waiting for txid on all peers" i already tried to fix it after doing research and…
0
votes
1 answer

Linux terminal, npm install ETIMEDOUT

I installed nodeJs and npm using nvm, that went perfectly, then I notice that a newer version of npm was available so i try npm install -g npm@latest But then it just stays as like that, it's like it does not start never, so I try another command…
0
votes
1 answer

MongoDB "connect ETIMEDOUT"

I suddenly cannot connect to my database! This issue occurred out of nowhere just the other day and I have not been able to figure out why. I have pm2 processes running that are using the database and are working correctly. However, if I restart one…
Liege
  • 11
  • 1
0
votes
1 answer

MYSQL server on EC2 is sometimes refusing to connect

I have hosted a MySQL DB on AWS EC2 instance(t2.micro, ubuntu, free tier). I am able to connect to it and store data. But most of the time, I am unable to connect to it via workbench or my app. But my configurations are correct since I am able to…
Nithur
  • 111
  • 2
  • 10