Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not get any response - Error: connect ECONNREFUSED #6205

Closed
camohub opened this issue Apr 2, 2019 · 28 comments
Closed

Could not get any response - Error: connect ECONNREFUSED #6205

camohub opened this issue Apr 2, 2019 · 28 comments

Comments

@camohub
Copy link

camohub commented Apr 2, 2019

Hi, 3 days ago everything worked fine. Now I am getting an error Could not get any response like the screenshots show. Here are the error and settings screenshots.
Screenshot (143)
Screenshot (145)
Any public url is not able to connect. Only localhost works. I reinstalled the Postman to latest version but nothing happened.
Thank you for any help.

@shamasis
Copy link
Member

shamasis commented Apr 3, 2019

Can you check your OS proxy settings or proxy settings in Postman?

@baibhavtripathi
Copy link

I was having the same issue on Mac Postman, Version 7.0.7 (7.0.7)

Just add a extra slash, that trailing slash is important.

i.e try "node4:9200/search/_search/ "

Happy coding :)

@camohub
Copy link
Author

camohub commented Apr 4, 2019

@shamasis Postman proxy settings are off
Screenshot (148)

@baibhavtripathi Trailing slash does not work.

@shamasis
Copy link
Member

shamasis commented Apr 5, 2019

@camohub can you try making the same call using curl and check? (Use --verbose mode in curl so that we get more details.)

@shamasis
Copy link
Member

shamasis commented Apr 8, 2019

@camohub did you manage to recheck using curl? Another thing that interests me is that can you try enabling “use system proxy”? If your network has a proxy and is defined in OS, then this setting will enable postman to use the same. I’m stressing on proxy because the symptoms you mentioned gives me the feeling that localhost is excluded from proxy and hence is the only endpoint that’s working.

@camohub
Copy link
Author

camohub commented Apr 8, 2019

I made a request in PHP. It works. It is curl request. Postman still does not work. Any suggestions? I am not familiar with proxy. Why I need it?

PS: URL of the request looks like node4:9200/search/_search Is it correct? Its the same url as before when it worked.

@camohub
Copy link
Author

camohub commented Apr 11, 2019

Still no solution. Any suggestions?

@Westernwells
Copy link

am also having this same issue

@camohub
Copy link
Author

camohub commented Apr 12, 2019

As I found out I am behind the proxy server. Is it related to this problem?

@shamasis
Copy link
Member

shamasis commented Apr 18, 2019

@camohub Like I was guessing, proxy seems to be the likely culprit. But you never know! :-p In your proxy setting in Postman App, can you enable using system proxy and then in your system proxy, exclude the domain node (I'm guessing that you will see that localhost is already marked as excluded there and that's why that is working.)

@shamasis
Copy link
Member

am also having this same issue

@Westernwells - is it "same" issue... by that I mean, "http://localhost/" works but nothing else on local works? If there is a major variation from that then please file a separate issue.

@camohub
Copy link
Author

camohub commented Apr 19, 2019

What means exclude domain node? Proxy settings looks like:
Screenshot (158)

@Apostolos-Daniel
Copy link

I'm running into the same issue. Even if I try getting all my collections using the Postman API key (https://community.getpostman.com/t/where-do-you-see-your-own-uid-for-collection/3537) I generated I get a 'connection refused' response.

Request:

curl https://api.getpostman.com/collections?apikey=XXXXXXXXXXXXXXX/ -v

Response:
Failed to connect to api.getpostman.com port 443: Connection refused

It may be a proxy issue - I did try specifying the proxy IP address and port in Settings and all tried with and without 'Use System Proxy
Enable this option to allow Postman to use the system's default proxy configurations'.

I also tried to make the request outside the firewall - I get a more explicit error there:

'AuthenticationError'.

I've copied the API key directly from the Postman Integrations, Existing API Keys page. It currently has a status of 'Enabled' and 'Last Accessed' of 'Never Used'. 'Date Created' is June 7, 2019.

I've ran out of ideas for now. Any thoughts or suggestions are more than welcome!

Thanks for your time :)

@deep1803
Copy link

0CAC2F21-8023-4048-A08C-79E129468284
Proble :could not get any response in postman
Help me!

@mustela
Copy link

mustela commented Aug 6, 2019

Same happens where. Totally random. Sometime it works sometimes it doesn't. When it fails if I use curl, it just works.

@ghost
Copy link

ghost commented Sep 11, 2019

Same here - getting ECONNREFUSED from a server that otherwise works (another app is able to connect to the same endpoint). A Postman developer should address this issue!

Edit: SSL verification and proxies are disabled in my Postman settings.

@gaurav3588
Copy link

Same issue is coming to to me it was working fine but currently it is not even in the local host.
1
2

@saifeiLee
Copy link

saifeiLee commented Oct 17, 2019

I had the same issue. And I found a solution:

  1. Clear DNS cache.
# Mac OS X 12 (Sierra) and later:
sudo killall -HUP mDNSResponder
sudo killall mDNSResponderHelper
sudo dscacheutil -flushcache
  1. Trun Off Postman system proxy

@mustela
Copy link

mustela commented Oct 18, 2019

It's true that running that fixes the issue, but I have to do it over and over :/

@marwin1991
Copy link

same issue here

@dfmmalaw
Copy link

Having same issue when trying to connect to localhost only. Can hit it from Swagger and curl but not Postman
Screenshot_1

@coditva coditva added the bug label Mar 13, 2020
@ebuojr
Copy link

ebuojr commented Apr 16, 2020

Having same issues when icall localdb

@mohitranka
Copy link

Hi All, we have addressed it in v7.25.0 of the application, and now give better messages to help you debug the issue. Please verify the same and reach out to us if the issue persists.

@ghost
Copy link

ghost commented Sep 13, 2020

i was testing Nest JS ,APIs on postman and i had the same problem,but you either check the proxy settings on postman or start:dev

@JVDOG
Copy link

JVDOG commented Sep 7, 2021

I tried ipconfig / flushdns and helped me

@Nura21
Copy link

Nura21 commented Feb 25, 2022

Error: connect ECONNREFUSED 127.0.0.1:443
Found this, I've seen the console, and......well some scratch, but its just the name for the host
Screen Shot 2022-02-25 at 10 16 17

@ibhawna
Copy link

ibhawna commented Jun 13, 2022

Error: connect ECONNREFUSED 127.0.0.1:443 Found this, I've seen the console, and......well some scratch, but its just the name for the host Screen Shot 2022-02-25 at 10 16 17

i am getting same error how did you resolve it

@Nura21
Copy link

Nura21 commented Jun 13, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests