Can't access API only with postman

Hello, I am trying to access the SpringBoot REST api which works in cURL and with curl commands generated by Postman, but not in postman itself. I have been trying to troubleshoot a java application aswell, maybe you have an idea why postman and java can’t access the api.

cURL command:

curl dannyje.dev:8080/einkaufsliste

cURL generated by Postman:
curl --location --request GET ‘dannyje.dev:8080/einkaufsliste’
–header ‘Content-Type: application/json’ \

→ Both return a JSON array of objects successfully

I have not changed any settings in postman, if I hit the run button, I get a timeout.

Postman request:

Postman Console:
grafik

Thank you for any help in advance!

The Spring boot api is still running at dannyje.dev:8080/einkaufsliste, if you want to try it yourself

Are you expecting us to be able to access that URL over the internet? Looks like a private IP range to me.

Are you using the web client or the desktop application? (I wouldn’t expect you to be able to access that using the web client as those requests are sent from the Postman cloud).

This error is usually related to network connectivity.

Some other things to consider…

You might want to add the http or https to the beginning of the URL to enforce the correct scheme. Should this be https?

Are you using a VPN to access this? Can you ping the hostname?

Port 8080 is a standard port, so should be accessible through the windows firewall without you making any changes. However, if you are running Postman from the desktop client, you usually need to allow it access when it first launches.

If you are behind a proxy, you might also need to look at that.

It is resolved, my bad, had to do with my hoster’s firewall. Sorry for wasting your Time :frowning:

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.