[Django]-Django Broken Pipe Message

12👍

After reading this Django Ticket and several stack overflow answers, I understand that a 'broken pipe' error occurs when the browser sends a request but does not wait for the response and closes the connection.

In my case, my React app was reloading the page immediately after sending the request. I just put preventDefault(); to prevent the app from refreshing and listen to the response.

Whatever stack you are using, make sure your app is available to accept the response from the server.

Leave a comment