1

enter image description here

I tried using postman to test my springboot project. When I sent the request, postman made a 503 error, but when I sent the request in the browser, it successfully got a response.

How to solve this problem?

enter image description here

enter image description here

Danny Dainton
  • 23,069
  • 6
  • 67
  • 80
Zach Young
  • 23
  • 1
  • 1
  • 5
  • In the app, you're making a POST request but the browser would be making a GET request. – Danny Dainton Mar 15 '20 at 08:49
  • Sorry, I used GET at first, but it didn't work either. – Zach Young Mar 15 '20 at 08:53
  • You might also want to add the server-side code to your question so that folks can see what's going on. You're only showing one side of the story at the moment. – Danny Dainton Mar 15 '20 at 09:04
  • I believe that response is enough right? @Danny – Sivaramakrishnan Mar 15 '20 at 09:06
  • Share the logs of spring boot, if it's throwing a 503 it is probably a service/configuration filter – Thomas__ Mar 15 '20 at 09:09
  • It seems you blame Postman here. Click on `Code` under the Save button and select cURL. Try to run that curl command and see the response. – Steve Benett Mar 15 '20 at 09:09
  • Thank you for giving me a unique direction. But I followed your instructions, but the result is still like this. – Zach Young Mar 15 '20 at 09:21
  • Check your hidden autogenerated message headers. Make sure the Host header is checked off. See my post, I had a similar problem: https://stackoverflow.com/questions/69930832/web-version-of-postman-with-browser-agent-works-but-the-postman-desktop-app-and – Cale Sweeney Nov 11 '21 at 16:36

3 Answers3

0

I had the same issue I resolved it like this : Postman settings go to the top right of your postman window Settings > proxy > use the system proxy for my case I added another proxy so I had to desable it when making a local api call. good luck !

0

I had the same issue I resolved it. please open IIS Server and select Application pools and check particular name and status. if status stopped go to started. then you will go to check your post man.

IIS Server => Application pools => Status => started

I had the same issue I resolved it

-1

503 Service Unavailable clearly states the server is overloaded, you may be running out of memory. Try again or try to restart the server. The post method will say bad request only. So you should try restarting the server if it is yours, or retry after sometime if it is a 3rd party service.

And also can you check and make sure your postman proxy is turned off. Even that causes problems like these sometimes. Check that in proxy tab.

Sivaramakrishnan
  • 350
  • 3
  • 18