#27005: request.body raises an exception
-------------------------------+--------------------------------------
     Reporter:  dvinegla       |                    Owner:  nobody
         Type:  Bug            |                   Status:  new
    Component:  Uncategorized  |                  Version:  1.10
     Severity:  Normal         |               Resolution:
     Keywords:                 |             Triage Stage:  Unreviewed
    Has patch:  0              |      Needs documentation:  0
  Needs tests:  0              |  Patch needs improvement:  0
Easy pickings:  0              |                    UI/UX:  0
-------------------------------+--------------------------------------

Comment (by dvinegla):

 {{{
 Environment:


 Request Method: GET
 Request URL: http://localhost:8000/myapp/

 Django Version: 1.10
 Python Version: 2.7.10
 Installed Applications:
 ['django.contrib.admin',
  'django.contrib.auth',
  'django.contrib.contenttypes',
  'django.contrib.sessions',
  'django.contrib.messages',
  'django.contrib.staticfiles']
 Installed Middleware:
 ['django.middleware.security.SecurityMiddleware',
  'django.contrib.sessions.middleware.SessionMiddleware',
  'django.middleware.common.CommonMiddleware',
  'django.middleware.csrf.CsrfViewMiddleware',
  'django.contrib.auth.middleware.AuthenticationMiddleware',
  'django.contrib.messages.middleware.MessageMiddleware',
  'django.middleware.clickjacking.XFrameOptionsMiddleware']



 Traceback:

 File "./python2.7/site-packages/django/core/handlers/exception.py" in
 inner
   39.             response = get_response(request)

 File "./python2.7/site-packages/django/core/handlers/base.py" in
 _get_response
   187.                 response = self.process_exception_by_middleware(e,
 request)

 File "./python2.7/site-packages/django/core/handlers/base.py" in
 _get_response
   185.                 response = wrapped_callback(request,
 *callback_args, **callback_kwargs)

 File "/testproject/myapp/views.py" in test_view
   7.    assert False, request.body

 File "./python2.7/site-packages/django/http/request.py" in body
   267.                     int(self.META.get('CONTENT_LENGTH', 0)) >
 settings.DATA_UPLOAD_MAX_MEMORY_SIZE):

 Exception Type: ValueError at /myapp/
 Exception Value: invalid literal for int() with base 10: ''

 }}}

--
Ticket URL: <https://code.djangoproject.com/ticket/27005#comment:2>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/066.92bd6715c0518472fc79ab6392bae61f%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to