Sunday, October 17, 2010

Re: iPhone posting FILEs = "Invalid content length"

It did in our case.

What configuration are you running? We are running lighttpd and fastcgi.

On Oct 15, 2010, at 6:33 PM, Mike Krieger wrote:

> Hey Eric!
>
> We're using ASI & Django and seeing the same thing.
>
> Was setting shouldAttemptPersistentConnection enough to make the
> problem go away? About 1/50 of our requests fail with this bug.
>
> Thanks!
> Mike
>
> On Oct 7, 11:21 am, Eric Chamberlain <e...@rf.com> wrote:
>> We ran into the same error with ASIHTTPRequest, our fix was to turn off persistent connections.
>>
>> On Sep 30, 2010, at 3:55 AM, Danny Bos wrote:
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>> Hey there,
>>> I've got a new error I'm totally stumped on. All searches are saying
>>> it's a "http vs https" or similar.
>>> I'd be keen to hear your thoughts.
>>
>>> Basically I've got an iPhone app sending a POST to a django app, it
>>> contains one FILE.
>>> Every now and then (very sporadically, about 1 in 5) one fails and I
>>> get the below message.
>>
>>> <tr>
>>> <th>Exception Type:</th>
>>> <td>MultiPartParserError</td>
>>> </tr>
>>> <tr>
>>> <th>Exception Value:</th>
>>> <td><pre>Invalid content length: 0<pre></td>
>>> </tr>
>>> <tr>
>>> <th>Exception Location:</th>
>>> <td>/home/72999/data/python/django/django/http/multipartparser.py in
>>> _init_, line 80</td>
>>> </tr>
>>
>>> Any ideas?
>>
>>> --
>>> You received this message because you are subscribed to the Google Groups "Django users" group.
>>> To post to this group, send email to django-users@googlegroups.com.
>>> To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
>>> For more options, visit this group athttp://groups.google.com/group/django-users?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
>

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate