By jackyp
Hi there,
I have a django application with postgres database (postgresql_psycopg2 specifically), using Gunicorn & Nginix. Essentially I followed this guide.
Part of the application is a form with a CharField that users put text input into. This is then processed and stored in the db. When the amount of text input is relatively small the application works as expected, however when the input text input becomes very large the application fails and I get a ‘Site can’t be reached. The connection was reset error’. It seems like somewhere between the database, gunicorn or Nginix the amount of data being processed is causing an issue somewhere. I haven’t got much experience at logging etc. so am not sure where to look for what the issue is and how to fix it. It shouldn’t be an issue with the application logic, as it worked fine in development.
Any suggestions would be very welcome.
Thanks!
Jack
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.