-1

I am attempting to make a requests.requests("Post") request to an API in my python script. If I test my API endpoint in Postman and make the POST request, I am able to get the correct response w/ a <Response 200> no problem. But if I use the exact same code postman uses in my python script or in a Jupyter notebook, I'm receiving a <504 Response>.

I've tried requests.Post. I've tried requests.request("POST"). I've tried with and without certify.

This is for an enterprise application if that changes anything.

Not really sure what I should do here. Just a poor intern lost in the weeds.

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129

1 Answers1

-1

It could happen that in Postman, multiple headers are sent along, and you would need to incorporate them in Python.

Ed Ke
  • 1