-
Notifications
You must be signed in to change notification settings - Fork 836
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
Desktop App not honoring /etc/hosts file -- returning 404s #2369
Comments
+1 I have a custom entry in hosts file, and native Postman is not figuring it out (it's saying domain not found, instead of figuring setting from /etc/hosts) |
I'm having the same issue on the Windows version of Postman |
Same issue with Postman App on Windows |
Yep, happens to me too. Windows 10. Guess it's time to uninstall it and keep using the extension. |
Same issue on my windows 7, curl not honoring host file too |
Same with OSX El Capitan 10.11.6. |
Same with Version 4.10.7 on macOS Sierra 10.12.3 |
Postman native apps, do not have support for |
Weird... My postman collection was working fine with the entry in /etc/hosts file till the latest update. After that, only ip access works.... in my case, my api server is running on a vm on my mac. I have been able to use postman for the last many months to connect to my vm through the name in my hosts file. |
Same issue
|
Guys, if you have the same issue, be sure to +1 the original post. Also, v5.0.0 now and still nothing on this issue? Come on, guys, don't make me use Insomnia. |
Same issue Native APP |
@okonomiyaki3000 i switched to insomnia as postman is useless without |
The issue does not seem to be limited to only native apps, I'm using Postman via Chrome's Apps and it also does not use my |
edit: turns out idk what i'm doing. /etc/hosts works just fine on postman v5.2.0 ubuntu 17.04 |
How can a bug like this go unfixed for a year? |
@okonomiyaki3000 Author uses linux for development, so gives a fuck on other "supported" platforms |
Congratulations on v5.3! The new features look really great! I look forward to using them someday if this glaring, year-old bug ever gets fixed! |
Same issue, I think, on Ubuntu 16.04 with version 5.3.2. I get no response though, the request just loads indefinitely. It works fine with the browser extension so I guess I'll use that until this is fixed. EDIT: I might be having a different issue. It seems all my requests are hanging. Going back to version 4.10.7 fixed that. I'm working around the hostfile issue by making all requests to my local IP address, then adding a |
Also affected by this on KDE neon. As well using chrome app which will do the trick intermediate. |
I can't understand how such a critical bug can manage to stay unresolved for more than a year! |
@jc-vrvd It's over a year and half already. But, you know, it can be hard to get something like this to work correctly. Don't be fooled by the fact that every other piece of software in existence handles this without issue. It is very hard. |
Same here. OS X High Sierra 10.13.6 and postman 6.7.2, but it was working before, not sure which version broke it. |
@mafavale You may be confusing the Chrome app with the standalone version. The Chrome app always worked, the standalone (probably) never did. |
I got around this issue by setting up a local proxy and configure postman to use that local proxy that honors hosts file. |
Hello everyone, I tried to reproduce this in all the three platforms (phew… that was tedious) and seems like I took screenshots for each platform and have appended to this thread. Understandably, there is something going wrong somewhere for those who are facing issues with Postman not honoring Overall, I think we need the following checked before it works:
If your Screenshots of MacOSWindowsLinux |
@codenirvana lol, how nice. You realize that's not where the hosts file resides on either Windows or Mac, right? Would it be so difficult to use the correct file for each system? |
@okonomiyaki3000 Thanks for pointing out, updated the Step 5. |
@okonomiyaki3000 can you help with trying these steps and maybe even get into a call or suggest something specific that may help us reproduce this? I have been feeling pretty stupid myself for not being able to reproduce this. I am almost sure that I am missing something or there is something specific about the installation where there are issues. 😭 |
Just wanted to reach out to everyone in this thread who were having issues with host file. Any way we can work together and reproduce this issue as discussed in Maybe then we can keep this issue as closed and circle back when we have fresh issues. |
@okonomiyaki3000 If it's not feasible to keep a constructive tone when you get your hands on a keyboard then please refrain from commenting here. There are hundreds of comments and issues on this tracker and reading through crappy comments just creates more noise. |
This is still an issue for me on Windows 10 & v7.0.7 |
@codenirvana Thanks for the steps. The issue is still present. I am using Version 7.0.7 on Mac.
|
I set Use System Proxy = Off and my Host file is being used now. I am on Postman v7.0.9 but all my entries are 127.0.0.1 in the hostfile as mentioned. |
@vikaspro90 Please check the attached screenshot. |
Postman v7.5.0 on Windows, in Settings was able to point the Global Proxy Configuration to the a specified IP address under Proxy Server |
In my case it looks like Postman is not honoring /etc/hosts when there is DNS record for given hostname registered. MacOS here. |
same issue. It seems Postman cached the dns record for a while. After I modified the hosts file. The Postman stille use the previous dns record for that domain. But after a few moment, it will use the record in hosts file. I wonder if there is a feature i can manually flush the dns cache in Postman. |
This is still occurring on the Postman App, but not on the chrome extension. I'm on Windows. Instead of remapping addresses to localhost, I am remapping addresses to miscellaneous LAN IPs. It may have something to do with the name of the network name of the machine, because technically my machine is |
I cleared my dns cache and it starts honoring hosts file |
Hosts file is working for me on MacOS, after I went into Settings > General and turned off SSL Certificate Verification, since I'm using a self-signed cert. Postman for Mac. Version 7.7.3. OS X 19.6.0. (not sure if it was also after i cleared my dns cache as @alhaqhassan mentioned) |
Hopefully this helps someone else. I'm using the Windows Native App and it wasn't honoring my host file. I had postman setup to use a proxy. It was hitting the proxy first before checking my host file. I added a Proxy Bypass in Postman for the same entries I had in my host file and then it worked. |
Native app (7.36.0) on windows 10 and still custom entry on hosts file is not resolved despite clearing dns cache. |
Same issue here.. How can it still be the case after 5 years? In Burp it works without any issue, it honors hosts file, and even allows additional overrides inside it as well.. |
One tip for Windows user, try "Run as Administrator", now it can read hosts successfully |
I was having this issue too. For me, turning off the |
This issue started after moving from the Chrome App to the Mac App. In the Chrome App everything behaves as expected, however, in the Mac App all of my calls now return 404s. After troubleshooting the only thing I can think that's different is the app and how it may be interacting with the /etc/hosts file. The below Request Headers/Response Headers/Response Body are taken from the Mac App.
Request Headers:
cache-control:"no-cache"
Postman-Token:"a27758c0-bf38-4521-8135-2edd442ccd4c"
Host:"api.maila.dev.naiadsystems.com"
Connection:"keep-alive"
Accept:"application/json, text/plain, /"
Origin:"https://admin.maila.dev.naiadsystems.com"
User-Agent:"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.87 Safari/537.36"
Referer:"https://admin.maila.dev.naiadsystems.com/variables/2"
Accept-Encoding:"gzip, deflate, sdch"
Accept-Language:"en-US,en;q=0.8"
Cookie:"PHPSESSID=gng7k6dh5nh4q4ogk3tsn8mis0; sakey=saede52e5973731352"
Content-Type:"application/json"
Response Headers:
Date:"Thu, 29 Sep 2016 18:09:50 GMT"
Server:"Apache/2.4.10 (Debian)"
Content-Length:"308"
Keep-Alive:"timeout=5, max=100"
Connection:"Keep-Alive"
Content-Type:"text/html; charset=iso-8859-1"
Response Body:
<title>404 Not Found</title>Not Found
The requested URL /v1/entitytypes was not found on this server.
Apache/2.4.10 (Debian) Server at api.maila.dev.naiadsystems.com Port 80
The text was updated successfully, but these errors were encountered: