-
Notifications
You must be signed in to change notification settings - Fork 837
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
Call to localhost:8000 "Could not get any response" #2214
Comments
@cpiggott Can you check also check the Postman console (View -> Show Postman Console) for any errors? |
@abhijitkane I am able to connect to Error: connect ECONNREFUSED 127.0.0.1:8080 is getting logged. |
@cpiggott Can you try adding these two headers in the Postman UI:
|
@abhijitkane Tested with the errors, still getting the same error. |
@abhijitkane I ran a NodeJS server on port 9000 and I'm getting the expected response from it. It may be something to do with Laravel, but I ran it this morning before updating and had no problem with my Laravel test server. |
Are there any error/debug logs printed by your laravel server? |
Nothing error/debug is being logged. I can reach localhost:8080 from Chrome, but not Postman. |
@cpiggott Hope you don't mind me jumping in! |
I think I'm hitting a similar (the same?) problem. After upgrading to Response headers from the daemon that does not work with
Response headers from a daemon that does work with
|
@czardoz If I hit 127.0.0.1 I get a 200 OK. If I try and hit 127.0.0.1:8080 I get the same response. |
I ran into this issue as well. It seems that Postman converts localhost to 127.0.0.1 before making the request. I happened to be serving a Rails app with Puma that was not listening on 127.0.0.1, only [::1]. They have since fixed this in Puma (puma/puma#782), but it seems like this will at first look like a Postman issue whenever a server disregards ipv4. My symptoms were as follows: In a browser:
In Postman:
|
Same issue here. Works with http://[::1]:3000. Thank you @capicue!!! |
Issue is fixed in 4.5.1 release. If I get one confirmation, I can close this issue. Let me know. |
Doesn't seem to fix it for me. |
@knarz can you tell us a few more details?
|
Sure.
|
Update to 4.5.1 fixed the issue for me. |
I'm seeing this problem in the Windows app version 4.6.1. The Chrome app (version 4.6.0) works fine with http://localhost:3000/stuff |
This issue exists in the latest Chrome app Postman 4.9.0. http://localhost:3100/test fails |
I'm having this issue too 4.9.3 |
This is what I see in console when get that error: I have same error when I send request from node.js application written by me.
which means there is issue with parsing response. May be something wrong with response headers for example. I had this issue before and it was because server was returning wrong value in "Content-length" header, for example, Content-length: 10, but real length of body is 5. PHP will handle this case without issues, but node.js don't ignore it and throw HPE_INVALID_CONSTANT and "Parse Error". And I think it should let Postman work even with http servers that return invalid headers. |
Postman's response is confusing.
The console output is:
|
The native Postman apps do run on a NodeJS sandbox, so that could be a possibility. |
@madebysid It's not only on localhost. As I got an API (private), and saw there is "Parse Error" when I implemented that API in node.js. Then I decided to test it in Postman and saw same error. I also tried "Rested" HTTP client for macOS, and it returned response without issues. So, issue happens only in node.js and error message is "Parse Error". |
http://localhost:3100/dishes fails |
I'm facing the same problem as well. if I remove the header, it works fine |
firewall can block 8000 port also, e.g. antivirus's one. |
Turn off SSL Certificate Verification in Settings>General |
close your interceptor |
I was having this same issue on Mac postman 5.3.2, turns out I had an incorrect header, I had this error in the console: |
Was having the same problem using the Windows App accessing a linux server running on vagrant. Had to ditch the windows app and use the browser version, working like a charm now. |
Closing this issue as there might be multiple reasons for this request to not work. Does not seem to be a particular problem with the postman-runtime. |
How about error"Error: socket hang up" in console view of postman? |
hi. i'm having the same problem... |
Turning off SSL certificate validation worked for me (debugging w/VS2017 ASP.NET Core 2.0) |
I had envronment variables 'http_proxy' and 'https_proxy' that were preventing me to get to localhost. Removing the environment variables did the trick. |
I have SSL certificate validation off, but it still didn't work. Changing localhost to [::1] (whatever that means) fixed it. |
I was having this same issue on Mac postman, Version 7.0.7 (7.0.7). '/' at the end in requests, did the job for me. |
I tested today using netcat on mac: In chrome, requests are printed when I write Postman only works when using The two errors are |
When I'm trying to use POST operation through local host server. It is not connecting to the server and showing the following error : There was an error connecting to http://localhost:4500/api/user/signup Can someone please help here? |
@yogiiiii26 So, when you open this URL in browser it works? but when you request it in Postman it doesn't? |
Hi @airs0urce thanks for the suggestion but after doing this also the error is still the same. |
Hi ! Can I have solution for this localhost issue plssss? |
postman is not able to connect to localhost:3000. Postman version:9.23.3 |
@krishna066 Are you able to access the above url via any other method? I am assuming that you are using the desktop version of Postman (not web). Let me know if that's not the case. @Gitanjali86 Can you please share a screen recording of the issue? It will help us debug the issue further. |
Hi @shubhbhargav, I'm using the desktop version and my issue got fixed after I downgraded the node version in my machine. Thank You. |
I recently updated the Postman Mac application to 4.5.0 and I'm currently having issues getting a response from localhost.
I have tried multiple ports and restarted everything that I thought could be an issue(Postman, local Apache, server, etc.) I don't believe it is an issue with my server or apache. I can reach the localhost with Postman by using ngrok to POST/GET the URL that is tunneled to my localhost.
Not sure what the issue is, console isn't logging any errors either.
Version/App Information:
Steps to reproduce the problem: Make a POST/GET request to localhost:xxxx while running a LAMP stack in development mode.
The text was updated successfully, but these errors were encountered: