[newmaint-site] Problems with DC submission
Martín Ferrari
tincho at debian.org
Mon Feb 29 17:41:12 UTC 2016
Hey,
Since a few days ago I noticed my (fairly large) cron job that submits
data on git.d.o started to fail with a cryptic message
(simplejson.decoder.JSONDecodeError: No JSON object could be decoded).
Finally, I changed the code to output the JSON that was getting returned
from the application, and it became clear that I hit two different bugs.
One is that it seems the submission is too big for some django limit on
the size of the POST data. I checked and the JSON being posted is about
1.5 MiB in size. No thing way too crazy... Can we increase this limit?
The other is that this error for some reason did not follow the usual
route, and instead of getting properly wrapped error, I got a 500
response with an HTML content. So, either the server application is
failing to be consistent, or the client is not being able to handle this
kind of problem.
The response that the client tries to interpret as JSON:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>413 Request Entity Too Large</title>
</head><body>
<h1>Request Entity Too Large</h1>
The requested resource<br />/contributors/post<br />
does not allow request data with POST requests, or the amount of data
provided in
the request exceeds the capacity limit.
<hr>
<address>Apache Server at contributors.debian.org Port 443</address>
</body></html>
More information about the newmaint-site
mailing list