Skip to content Skip to sidebar Skip to footer

Error: [errno 32] Broken Pipe

I am working on a Django project. All went well till I created an Ajax request to send values from the html page to the backend (views.py). When I send the data using Ajax, I am a

Solution 1:

You haven't posted any code, but this is probably because you have triggered the Ajax request on a button submit but haven't prevented the default action. So the Ajax request is made, but by the time it comes to return the data, the browser has already requested the next page anyway, so there is nothing to receive it.

Solution 2:

I have solved this problem by adding this:

self.send_header("Access-Control-Allow-Origin", "*")

Because I found some error on sending post request page:

No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null'is there

Then I got this solution and solved above problem.

Post a Comment for "Error: [errno 32] Broken Pipe"