[newmaint-site] Problems with DC submission

Enrico Zini enrico at enricozini.org
Mon Feb 29 17:57:37 UTC 2016


On Mon, Feb 29, 2016 at 05:41:12PM +0000, Martín Ferrari wrote:

> 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.

In my experience, when this happens it is a problem in python-requests:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=801506
and submitting with curl actually works. The bug has an example curl
line to redo the same that dc-tool is doing.

If you hit some django limit with curl we can indeed look into relaxing
it, and I would expect the limit to be related to form post data, and
not to file uploads.


Enrico

-- 
GPG key: 4096R/E7AD5568 2009-05-08 Enrico Zini <enrico at enricozini.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/newmaint-site/attachments/20160229/d5d4cbfd/attachment.sig>


More information about the newmaint-site mailing list