Error: connect ECONNREFUSED 127.0.0.1:80

Hello,

I have this error. Could you help?

I’ve checked:
General:

ssl: off
request timeout in ms: 0

Proxy:

This proxy requires authentication: unchecked
Use the system proxy: unchecked
Add a custom proxy configuration: checked
Proxy Type HTTP HTTPS - checked
Proxy Server: 127.0.0.1 : 8080
Proxy Auth: off

Console:

Error: connect ECONNREFUSED 127.0.0.1:80
Proxy
authenticate: false
disabled: false
host: "127.0.0.1 "
id: "fc58a55e-fac7-40b1-95b6-53760ef1411f"
match: {…}
port: 8080
tunnel: false
Request Headers
User-Agent: PostmanRuntime/7.25.0
Accept: */*
Postman-Token: 99e03e24-fe65-4348-83d0-d8a3bcc1a84f
Host: localhost:3000
Accept-Encoding: gzip, deflate, br
Connection: keep-alive

Regards

Hey @sync_bear,

Welcome to the Community :wave:!

It looks like you’re sending a request to localhost:3000, but your Proxy settings seem to be set to 127.0.0.1: 8080 Is your server running on Port 3000 or 8080? If it’s 3000, you could try making the relevant change in your Proxy settings to reflect that. I hope this helps!

4 Likes

Hello,

you saved my time, a many minutes;)

It should be: Proxy Server: 127.0.0.1 : 3000

Regards

if you are using Anypoint make sure you don’t have an empty flow, if you have one you need to delete it run your project again

I am also facing the same issue and did the same as mentioned above but still showing the error

    1. authenticate: false
  1. disabled: false

  2. host: “127.0.0.1”

  3. id: “b0180aad-57bc-4c65-82ef-384b8a202a7c”

  4. :arrow_forward:match: {…}

  5. port: 3000

  6. tunnel: false

:arrow_forward:Request Headers

Content-Type: application/json

User-Agent: PostmanRuntime/7.26.5

Accept: /

Postman-Token: 0ac47b6e-1b0a-407f-9e56-9cbbd1d72e88

Host: localhost:3000

Accept-Encoding: gzip, deflate, br

Connection: keep-alive

:arrow_forward:

i did the solution but there is a new error saying:
Error: read ECONNRESET
this is what it says in console:
POST http://localhost:3000/articles

Error: read ECONNRESET

  • :arrow_forward:Request Body
  1. title: “test title”

  2. content: “test content”

Beneficial, thanks!
U saved my time.

Please checkout this similar error on my side

  • Proxy
  1. id: “19d68bc0-c9af-4b8b-99c5-c454b6ac9602”

  2. disabled: false

  3. host: “127.0.0.1”

  4. :arrow_forward:match: {…}

  5. port: 8080

  6. tunnel: false

  7. authenticate: false

:arrow_forward:Request Headers

User-Agent: PostmanRuntime/7.26.10

Accept: /

Postman-Token: 1ce540d9-15b6-43d3-9fdc-8ddbdcb49305

Host: localhost:8000

Accept-Encoding: gzip, deflate, br

Connection: keep-alive

l have had this error for a longtime.

Hi @avionics-geoscienti3, Welcome to the Community!

Can you please check on which port your server is running?

As seeing the above information your proxy server is at port 8080 and you are trying to hit port 8000.

Can you try to use the URL as localhost:8080 instead of localhost:8000?

Hope this helps :slight_smile:

hi darkphoenix thanks for the response. l have tried to use URL as localhost:8080 but it is still give me the same error. what should l do?

POST http://localhost:8080/api/register

Error: connect ECONNREFUSED 127.0.0.1:8080

  • :arrow_forward:Proxy
  1. id: “f52a3bb0-81bd-4211-a139-0271f1a6c87a”

  2. disabled: false

  3. host: “127.0.0.1”

  4. :arrow_forward:match: {…}

  5. port: 8080

  6. tunnel: false

  7. authenticate: false

:arrow_forward:Request Headers

User-Agent: PostmanRuntime/7.26.10

Accept: /

Postman-Token: c6f20a64-ba17-4776-8243-214d13229b7c

Host: localhost:8080

Accept-Encoding: gzip, deflate, br

Connection: keep-alive

  • :arrow_forward:Request Body

Hi @avionics-geoscienti3 ,

You need to check for the port on which your proxy webservice is running.

Are you sure that proxy is up and running on port 8080?

yes it is running on port 8080

Can Anyone help me please this error is irritating me and stopping me to store data in DB
Please help me I have wasted more time on this and I am really stuck.
Can anyone join me on google meet.

email ID
twinbwoy97@gmail.com

Error: connect ECONNREFUSED 127.0.0.1:8080

:arrow_forward:Request Headers

Content-Type: application/json

User-Agent: PostmanRuntime/7.28.0

Accept: /

Cache-Control: no-cache

Postman-Token: ead4b823-9952-4219-8904-e609374ff77d

Host: localhost:8080

Accept-Encoding: gzip, deflate, br

Connection: keep-alive

hello ,

It is not postman error, Check very well your code, run another project and test with postman. Check your Entity or relation between entity, @Autowired in composite class. you will get the solution of this issue. it is not in postman

Hello…

This is the url I am trying to get from postman
URL
GET http://localhost/9091/searchproduct/1

And it gives me this error:
Console
Error: connect ECONNREFUSED 127.0.0.1:80

:arrow_forward:Request Headers

User-Agent: PostmanRuntime/7.28.4

Accept: /

Postman-Token: 771292e0-c091-4868-b7ff-d3eb78bbc5ae

Host: localhost

Accept-Encoding: gzip, deflate, br

Connection: keep-alive

I am trying to fix this error from a very long time. Please help me fix it.
Thanks

Hello,
Your explanation saved my ass.
Thank you.

When you say “Anypoint,” is this describing the any port setup in Azure, or am I thinking about this the wrong way? I am having a similar issue, but my ports match. Using 9001.

I had the same issue. I’m using localhost:8080 to make a request for Spring boot, I tryed every sugestion above, but my servlet in the project was not inicialized yet. So make sure everything is up. I know its a dumb mistake but for starters like me its very easy to happen

GET http://127.0.0.1:5000/get_chain

Error: connect ECONNREFUSED 127.0.0.1:5000

:arrow_forward:Request Headers

:arrow_forward:GET http://127.0.0.1:5000/get_chain

Error: connect ECONNREFUSED 127.0.0.1:5000

:arrow_forward:Request Headers

User-Agent: PostmanRuntime/7.29.0

Accept: /

Cache-Control: no-cache

Postman-Token: cbb5de23-3bd9-4791-8573-daa22b065a57

Host: 127.0.0.1:5000

Accept-Encoding: gzip, deflate, br

Connection: keep-alive

Make sure that you have open localhost and after that use Postman