Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#17259 closed Bug (needsinfo)

error in http post data parser

Reported by: bayazee@… Owned by: nobody
Component: HTTP handling Version:
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description (last modified by Karen Tracey)

Traceback (most recent call last):

  File "/usr/local/lib/python2.6/site-packages/django/core/handlers/", line 95, in get_response
    response = middleware_method(request, callback, callback_args, callback_kwargs)

  File "/usr/local/lib/python2.6/site-packages/django/middleware/", line 164, in process_view
    request_csrf_token = request.POST.get('csrfmiddlewaretoken', "")

  File "/usr/local/lib/python2.6/site-packages/django/core/handlers/", line 171, in _get_post

  File "/usr/local/lib/python2.6/site-packages/django/core/handlers/", line 137, in _load_post_and_files
    self._post, self._files = self.parse_file_upload(self.META, self.environ['wsgi.input'])

  File "/usr/local/lib/python2.6/site-packages/django/http/", line 123, in parse_file_upload
    parser = MultiPartParser(META, post_data, self.upload_handlers, self.encoding)

  File "/usr/local/lib/python2.6/site-packages/django/http/", line 80, in __init__
    raise MultiPartParserError("Invalid content length: %r" % content_length)

MultiPartParserError: Invalid content length: 0

Change History (2)

comment:1 Changed 9 years ago by Russell Keith-Magee

Resolution: needsinfo
Status: newclosed

A stack trace isn't a bug report.

If you care to provide instructions detailing how you generated this stack trace, feel free to reopen.

comment:2 Changed 9 years ago by Karen Tracey

Description: modified (diff)

Also if you search trac ( you will find at least one similar report that may help you in isolating the cause of this problem. When it has been reported before the cause was found to be outside of Django itself.

Note: See TracTickets for help on using tickets.
Back to Top