Bug #4004
Updated by Jérôme Schneider about 11 years ago
Trace recu par email :
ERROR (EXTERNAL IP): Internal Server Error: /sessad-ted/agenda/2014-03-31/new-event
<pre>
Traceback (most recent call last):
File "/home/calebasse/venv/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 115, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/home/calebasse/venv/local/lib/python2.7/site-packages/django/contrib/auth/decorators.py", line 25, in _wrapped_view
return view_func(request, *args, **kwargs)
File "/home/calebasse/venv/local/lib/python2.7/site-packages/django/views/generic/base.py", line 68, in view
return self.dispatch(request, *args, **kwargs)
File "/home/calebasse/venv/calebasse/calebasse/cbv.py", line 57, in dispatch
result = super(ServiceViewMixin, self).dispatch(request, **kwargs)
File "/home/calebasse/venv/local/lib/python2.7/site-packages/django/views/generic/base.py", line 86, in dispatch
return handler(request, *args, **kwargs)
File "/home/calebasse/venv/local/lib/python2.7/site-packages/django/views/generic/edit.py", line 199, in post
return super(BaseCreateView, self).post(request, *args, **kwargs)
File "/home/calebasse/venv/local/lib/python2.7/site-packages/django/views/generic/edit.py", line 165, in post
return self.form_valid(form)
File "/home/calebasse/venv/calebasse/calebasse/agenda/views.py", line 231, in form_valid
return super(NewEventView, self).form_valid(form)
File "/home/calebasse/venv/calebasse/calebasse/cbv.py", line 130, in form_valid
res = super(M2MFormMixin, self).form_valid(form)
File "/home/calebasse/venv/local/lib/python2.7/site-packages/django/views/generic/edit.py", line 127, in form_valid
self.object = form.save()
File "/home/calebasse/venv/calebasse/calebasse/agenda/forms.py", line 178, in save
minutes=self.cleaned_data['duration'])
TypeError: unsupported type for timedelta minutes component: NoneType
</pre>
<WSGIRequest
path:/sessad-ted/agenda/2014-03-31/new-event/,
GET:<QueryDict: {u'participants': [u'2'], u'room': [u'null'], u'time': [u'']}>,
POST:<QueryDict: {u'start_datetime': [u'2014-03-31'], u'room': [u''], u'title': [u''], u'recurrence_end_date': [u''], u'participants_text': [u''], u'description': [u''], u'duration': [u'17h00'], u'participants': [u'|2|'], u'services':
+[u'4'], u'time': [u'09h00'], u'date': [u'31/03/2014'], u'csrfmiddlewaretoken': [u'XQH5VXL0z4NVcRlBQf8TqKLzNKpUR3uN'], u'recurrence_periodicity': [u''], u'event_type': [u'10']}>,
COOKIES:{'active-worker-agenda': '2',
'agenda-worker-tabs': '%5B%22selector-worker-2%22%5D',
'csrftoken': 'XQH5VXL0z4NVcRlBQf8TqKLzNKpUR3uN',
'home-service': 'sessad-ted',
'sessionid': 't126nzjp9pgi0huhg4hm09kms5glnedu'},
META:{'CONTENT_LENGTH': '260',
'CONTENT_TYPE': 'application/x-www-form-urlencoded; charset=UTF-8',
u'CSRF_COOKIE': u'XQH5VXL0z4NVcRlBQf8TqKLzNKpUR3uN',
'HTTP_ACCEPT': 'text/html, */*; q=0.01',
'HTTP_ACCEPT_ENCODING': 'gzip, deflate',
'HTTP_ACCEPT_LANGUAGE': 'fr,fr-fr;q=0.8,en-us;q=0.5,en;q=0.3',
'HTTP_CACHE_CONTROL': 'no-cache',
'HTTP_CONNECTION': 'close',
'HTTP_COOKIE': 'agenda-worker-tabs=%5B%22selector-worker-2%22%5D; active-worker-agenda=2; csrftoken=XQH5VXL0z4NVcRlBQf8TqKLzNKpUR3uN; home-service=sessad-ted; sessionid=t126nzjp9pgi0huhg4hm09kms5glnedu',
'HTTP_HOST': 'calebasse.aps42.org',
'HTTP_PRAGMA': 'no-cache',
'HTTP_REFERER': 'http://calebasse.aps42.org/sessad-ted/agenda/2014-3-31/',
'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20100101 Firefox/17.0',
'HTTP_X_FORWARDED_FOR': '192.168.0.3',
'HTTP_X_FORWARDED_PROTO': 'HTTP/1.1',
'HTTP_X_FORWARDED_SCHEME': 'http',
'HTTP_X_REQUESTED_WITH': 'XMLHttpRequest',
'PATH_INFO': u'/sessad-ted/agenda/2014-03-31/new-event/',
'QUERY_STRING': 'participants=2&room=null&time=',
'RAW_URI': '/sessad-ted/agenda/2014-03-31/new-event/?participants=2&room=null&time=',
'REMOTE_ADDR': '192.168.0.3',
'REMOTE_PORT': '80',
'REQUEST_METHOD': 'POST',
'SCRIPT_NAME': u'',
'SERVER_NAME': 'calebasse.aps42.org',
'SERVER_PORT': '80',
'SERVER_PROTOCOL': 'HTTP/1.0',
'SERVER_SOFTWARE': 'gunicorn/18.0',
'gunicorn.socket': <socket._socketobject object at 0x4845c20>,
'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f3319d9a270>,
'wsgi.file_wrapper': <class gunicorn.http.wsgi.FileWrapper at 0x1d41530>,
'wsgi.input': <gunicorn.http.body.Body object at 0x66ae310>,
'wsgi.multiprocess': True,
'wsgi.multithread': False,
'wsgi.run_once': False,
'wsgi.url_scheme': 'http',
'wsgi.version': (1, 0)}>
ERROR (EXTERNAL IP): Internal Server Error: /sessad-ted/agenda/2014-03-31/new-event
<pre>
Traceback (most recent call last):
File "/home/calebasse/venv/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 115, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/home/calebasse/venv/local/lib/python2.7/site-packages/django/contrib/auth/decorators.py", line 25, in _wrapped_view
return view_func(request, *args, **kwargs)
File "/home/calebasse/venv/local/lib/python2.7/site-packages/django/views/generic/base.py", line 68, in view
return self.dispatch(request, *args, **kwargs)
File "/home/calebasse/venv/calebasse/calebasse/cbv.py", line 57, in dispatch
result = super(ServiceViewMixin, self).dispatch(request, **kwargs)
File "/home/calebasse/venv/local/lib/python2.7/site-packages/django/views/generic/base.py", line 86, in dispatch
return handler(request, *args, **kwargs)
File "/home/calebasse/venv/local/lib/python2.7/site-packages/django/views/generic/edit.py", line 199, in post
return super(BaseCreateView, self).post(request, *args, **kwargs)
File "/home/calebasse/venv/local/lib/python2.7/site-packages/django/views/generic/edit.py", line 165, in post
return self.form_valid(form)
File "/home/calebasse/venv/calebasse/calebasse/agenda/views.py", line 231, in form_valid
return super(NewEventView, self).form_valid(form)
File "/home/calebasse/venv/calebasse/calebasse/cbv.py", line 130, in form_valid
res = super(M2MFormMixin, self).form_valid(form)
File "/home/calebasse/venv/local/lib/python2.7/site-packages/django/views/generic/edit.py", line 127, in form_valid
self.object = form.save()
File "/home/calebasse/venv/calebasse/calebasse/agenda/forms.py", line 178, in save
minutes=self.cleaned_data['duration'])
TypeError: unsupported type for timedelta minutes component: NoneType
</pre>
<WSGIRequest
path:/sessad-ted/agenda/2014-03-31/new-event/,
GET:<QueryDict: {u'participants': [u'2'], u'room': [u'null'], u'time': [u'']}>,
POST:<QueryDict: {u'start_datetime': [u'2014-03-31'], u'room': [u''], u'title': [u''], u'recurrence_end_date': [u''], u'participants_text': [u''], u'description': [u''], u'duration': [u'17h00'], u'participants': [u'|2|'], u'services':
+[u'4'], u'time': [u'09h00'], u'date': [u'31/03/2014'], u'csrfmiddlewaretoken': [u'XQH5VXL0z4NVcRlBQf8TqKLzNKpUR3uN'], u'recurrence_periodicity': [u''], u'event_type': [u'10']}>,
COOKIES:{'active-worker-agenda': '2',
'agenda-worker-tabs': '%5B%22selector-worker-2%22%5D',
'csrftoken': 'XQH5VXL0z4NVcRlBQf8TqKLzNKpUR3uN',
'home-service': 'sessad-ted',
'sessionid': 't126nzjp9pgi0huhg4hm09kms5glnedu'},
META:{'CONTENT_LENGTH': '260',
'CONTENT_TYPE': 'application/x-www-form-urlencoded; charset=UTF-8',
u'CSRF_COOKIE': u'XQH5VXL0z4NVcRlBQf8TqKLzNKpUR3uN',
'HTTP_ACCEPT': 'text/html, */*; q=0.01',
'HTTP_ACCEPT_ENCODING': 'gzip, deflate',
'HTTP_ACCEPT_LANGUAGE': 'fr,fr-fr;q=0.8,en-us;q=0.5,en;q=0.3',
'HTTP_CACHE_CONTROL': 'no-cache',
'HTTP_CONNECTION': 'close',
'HTTP_COOKIE': 'agenda-worker-tabs=%5B%22selector-worker-2%22%5D; active-worker-agenda=2; csrftoken=XQH5VXL0z4NVcRlBQf8TqKLzNKpUR3uN; home-service=sessad-ted; sessionid=t126nzjp9pgi0huhg4hm09kms5glnedu',
'HTTP_HOST': 'calebasse.aps42.org',
'HTTP_PRAGMA': 'no-cache',
'HTTP_REFERER': 'http://calebasse.aps42.org/sessad-ted/agenda/2014-3-31/',
'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20100101 Firefox/17.0',
'HTTP_X_FORWARDED_FOR': '192.168.0.3',
'HTTP_X_FORWARDED_PROTO': 'HTTP/1.1',
'HTTP_X_FORWARDED_SCHEME': 'http',
'HTTP_X_REQUESTED_WITH': 'XMLHttpRequest',
'PATH_INFO': u'/sessad-ted/agenda/2014-03-31/new-event/',
'QUERY_STRING': 'participants=2&room=null&time=',
'RAW_URI': '/sessad-ted/agenda/2014-03-31/new-event/?participants=2&room=null&time=',
'REMOTE_ADDR': '192.168.0.3',
'REMOTE_PORT': '80',
'REQUEST_METHOD': 'POST',
'SCRIPT_NAME': u'',
'SERVER_NAME': 'calebasse.aps42.org',
'SERVER_PORT': '80',
'SERVER_PROTOCOL': 'HTTP/1.0',
'SERVER_SOFTWARE': 'gunicorn/18.0',
'gunicorn.socket': <socket._socketobject object at 0x4845c20>,
'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f3319d9a270>,
'wsgi.file_wrapper': <class gunicorn.http.wsgi.FileWrapper at 0x1d41530>,
'wsgi.input': <gunicorn.http.body.Body object at 0x66ae310>,
'wsgi.multiprocess': True,
'wsgi.multithread': False,
'wsgi.run_once': False,
'wsgi.url_scheme': 'http',
'wsgi.version': (1, 0)}>