Report this

What is the reason for this report?

Python post request returns connection error

Posted on January 14, 2022

I have a django-nginx hosting setup done on my droplet and I’m currently trying to send post requests using python “requests” but receiving a ConnectionError with Max retries exceeded on the url. The post requests works fine with I’m running it locally but not on current droplet.

Note that my droplet is currently running the django app on a bare IP address with no domain and SSL. Please advice on what are the configurations that I’m missing to get the post request working.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.