Postman can't reach localhost

后端 未结 19 1933
Happy的楠姐
Happy的楠姐 2020-12-23 16:34

I am in a corporate env so I have to use a proxy to reach servers. This works well in postman and in browsers. What I can\'t reach is localhost in postman but I can reach lo

相关标签:
19条回答
  • 2020-12-23 16:46

    In my case, I had to precede the localhost with https://

    0 讨论(0)
  • 2020-12-23 16:47

    I have the same issue. What works for me is:

    Open File -> Settings -> Proxy

    Then, enable proxy and put 127.0.0.1 : 80, if your web server runs on 80.

    In the git thread, they say it is a known issue, so hopefully it will get resolved soon.

    0 讨论(0)
  • 2020-12-23 16:49

    My problem was forgetting to select Environment. From the drop down where you see No Environment in the image, select the name of your environment.

    0 讨论(0)
  • 2020-12-23 16:50

    i think i also found a perfect fix. First you turn on global proxy configurations, add your local machine Ip which is 127.0.0.1,then also add localhost in the bypass. Also turn off SSL verification. It worked for me

    0 讨论(0)
  • 2020-12-23 16:51

    While attempting to Get https://localhost:5001/WeatherForecast via PostMan while developing a basic .NET Core (3.1) Web API (on Ubuntu Linux) I got the error:

    Could not get any response There was an error connecting to https://localhost:5001/WeatherForecast.

    I didn't notice the actual solution in the things to try at first, but if you check the highlighted text in the image you will see it.

    You can see that the option is turned on in PostMan by default:

    I turned the SSL Certificate Verification off and tried again and it worked.

    0 讨论(0)
  • 2020-12-23 16:56

    In my case, I was using django-tenants and had to add the domain for the tenant in etc/hosts to get it working on localhosts. My entry for 127.0.0.1 now looks like

    127.0.0.1 localhost test.localhost

    0 讨论(0)
提交回复
热议问题