Localhost api call not working

Hi,
I am trying to interact to my back-end golang server which is running on port number 9000.I tried to connect by changing proxy settings but my call gets stuck on sending request.I tried all google solutions but its not working.
“https://www.postman-echo.com/get” this request is working though.
I am attaching my golang server configuration file as well as the server running
-pfa of proxy settings and sending request.

Thank you

These are more pictures

To determine if the issue is specific to Postman, does the request complete successfully if you use CURL or similar tool, e.g.

curl http://127.0.0.1:9000/v1/user/books

To see if it’s something unique to your Go server configuration, here’s a Go server example that I’ve gotten to work with Postman. If you can this one working maybe you can compare your current config with this one.

Hope this helps.

Hi,

Thank you for your reply.yes it does work with curl request.

Thank you,
Aatmaja

Hi @aatmaja,
This could be unrelated but it looks like you’re using Basic Authentication in your Proxy settings, perhaps this may be related: https://github.com/postmanlabs/postman-app-support/issues/8783

Hi @aatmaja,

Not sure if this will help, but if you’re just going against a local server, you shouldnt need to refer to it as a proxy, just simply make the request to the localhost / local IP with the port number and url.

As for the authentication side of things, thats where I am not sure. If you do have Basic Authorization set up on your server, then you would include that in the header of the request, and not in the proxy. This should only come into play after you can get some sort of response from the server for any attempt to send it a request.

Other than that, its hard to be sure with out seeing any log information.

Hope this helps!

Hello,
Sorry for replying this late, as I have just run into similar issue as not being able to call a very simple GET request from localhost.

My issue was related to insecure/ self signed certificate by localhost being rejected by postman’s default setting


As soon as I toggle off the SSL cert verification option in postman I can now make the GET request.

Although this may not be related to your issue’s cause, I hope it will help other novices developers like me in the future.

Many thanks