adding a predefined location on a video fails #1480

Open
opened 2013-04-24 17:20:06 +00:00 by uwe · 0 comments

In editor mode, trying to add location fails instantly with a message saying server error; error logs show:

Traceback (most recent call last):

File "/home/adefadmin/pandora/src/django/django/core/handlers/base.py", line 111, in get_response
response = callback(request, *callback_args, **callback_kwargs)

File "/home/adefadmin/pandora/src/python-ox/ox/django/api/views.py", line 35, in api
response = f(request)

File "/home/adefadmin/pandora/src/python-ox/ox/django/decorators.py", line 18, in _wrapped_view
return function(request, *args, **kwargs)

File "/home/adefadmin/pandora/pandora/annotation/views.py", line 144, in addAnnotation
start=float(data['in']), end=float(data['out']),

: float() argument must be a string or a number

<WSGIRequest
path:/api/,
GET:<QueryDict: {}>,
POST:<QueryDict: {u'action': []u'addAnnotation', u'data': [location"}']u'{"in":0,"item":"IK","layer":"places","out":null,"value":"test}>,
COOKIES:{'__utma': '217048518.300572742.1366044497.1366283931.1366556945.4',
'__utmz': '217048518.1366044497.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)',
'sessionid': 'f5f451be14c101d5b1fd4b42d3ace857'},
META:{'CONTENT_LENGTH': '152',
'CONTENT_TYPE': 'application/x-www-form-urlencoded',
'HTTP_ACCEPT': '/',
'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.3',
'HTTP_ACCEPT_ENCODING': 'gzip,deflate,sdch',
'HTTP_ACCEPT_LANGUAGE': 'en-US,en;q=0.8',
'HTTP_CONNECTION': 'close',
'HTTP_COOKIE': '*utma=217048518.300572742.1366044497.1366283931.1366556945.4; *utmz=217048518.1366044497.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); sessionid=f5f451be14c101d5b1fd4b42d3ace857',
'HTTP_HOST': 'archive.arabdigitalexpression.org',
'HTTP_ORIGIN': 'http://archive.arabdigitalexpression.org',
'HTTP_REFERER': 'http://archive.arabdigitalexpression.org/IK/editor/00:02:01.219',
'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; Linux x86_64) /537.31 (KHTML, like Gecko) Chrome/26.0.1410.43 Safari/537.31',
'HTTP_X_FORWARDED_FOR': '192.168.99.119',
'HTTP_X_FORWARDED_PROTO': 'http',
'HTTP_X_REQUESTED_WITH': 'XMLHttpRequest',
'PATH_INFO': u'/api/',
'QUERY_STRING': '',
'RAW_URI': '/api/',
'REMOTE_ADDR': '192.168.99.119',
'REMOTE_PORT': '80',
'REQUEST_METHOD': 'POST',
'SCRIPT_NAME': u'',
'SERVER_NAME': 'archive.arabdigitalexpression.org',
'SERVER_PORT': '80',
'SERVER_PROTOCOL': 'HTTP/1.0',
'SERVER_SOFTWARE': 'gunicorn/0.17.2',
'gunicorn.socket': <socket._socketobject object at 0x3ec14b0>,
'wsgi.errors': <gunicorn.glogging.LazyWriter object at 0x2278a90>,
'wsgi.file_wrapper': <class gunicorn.http.wsgi.FileWrapper at 0x2235ce8>,
'wsgi.input': <gunicorn.http.body.Body object at 0x3ec0d90>,
'wsgi.multiprocess': True,
'wsgi.multithread': False,
'wsgi.run_once': False,
'wsgi.url_scheme': 'http',
'wsgi.version': (1, 0)}>

In editor mode, trying to add location fails instantly with a message saying server error; error logs show: Traceback (most recent call last): > File "/home/adefadmin/pandora/src/django/django/core/handlers/base.py", line 111, in get_response response = callback(request, *callback_args, **callback_kwargs) > File "/home/adefadmin/pandora/src/python-ox/ox/django/api/views.py", line 35, in api response = f(request) > File "/home/adefadmin/pandora/src/python-ox/ox/django/decorators.py", line 18, in _wrapped_view return function(request, *args, **kwargs) > File "/home/adefadmin/pandora/pandora/annotation/views.py", line 144, in addAnnotation start=float(data['in']), end=float(data['out']), <TypeError>: float() argument must be a string or a number <WSGIRequest path:/api/, GET:<QueryDict: {}>, POST:<QueryDict: {u'action': []u'addAnnotation', u'data': [location"}']u'{"in":0,"item":"IK","layer":"places","out":null,"value":"test}>, COOKIES:{'__utma': '217048518.300572742.1366044497.1366283931.1366556945.4', '__utmz': '217048518.1366044497.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)', 'sessionid': 'f5f451be14c101d5b1fd4b42d3ace857'}, META:{'CONTENT_LENGTH': '152', 'CONTENT_TYPE': 'application/x-www-form-urlencoded', 'HTTP_ACCEPT': '*/*', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.3', 'HTTP_ACCEPT_ENCODING': 'gzip,deflate,sdch', 'HTTP_ACCEPT_LANGUAGE': 'en-US,en;q=0.8', 'HTTP_CONNECTION': 'close', 'HTTP_COOKIE': '*utma=217048518.300572742.1366044497.1366283931.1366556945.4; *utmz=217048518.1366044497.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); sessionid=f5f451be14c101d5b1fd4b42d3ace857', 'HTTP_HOST': 'archive.arabdigitalexpression.org', 'HTTP_ORIGIN': '<http://archive.arabdigitalexpression.org',> 'HTTP_REFERER': '<http://archive.arabdigitalexpression.org/IK/editor/00:02:01.219',> 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; Linux x86_64) <AppleWebKit>/537.31 (KHTML, like Gecko) Chrome/26.0.1410.43 Safari/537.31', 'HTTP_X_FORWARDED_FOR': '192.168.99.119', 'HTTP_X_FORWARDED_PROTO': 'http', 'HTTP_X_REQUESTED_WITH': 'XMLHttpRequest', 'PATH_INFO': u'/api/', 'QUERY_STRING': '', 'RAW_URI': '/api/', 'REMOTE_ADDR': '192.168.99.119', 'REMOTE_PORT': '80', 'REQUEST_METHOD': 'POST', 'SCRIPT_NAME': u'', 'SERVER_NAME': 'archive.arabdigitalexpression.org', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SOFTWARE': 'gunicorn/0.17.2', 'gunicorn.socket': <socket._socketobject object at 0x3ec14b0>, 'wsgi.errors': <gunicorn.glogging.LazyWriter object at 0x2278a90>, 'wsgi.file_wrapper': <class gunicorn.http.wsgi.FileWrapper at 0x2235ce8>, 'wsgi.input': <gunicorn.http.body.Body object at 0x3ec0d90>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>
uwe added the
major
defect
labels 2013-04-24 17:20:06 +00:00
rlx changed title from adding a predefined locatoin on a video fails to adding a predefined location on a video fails 2013-04-26 09:36:55 +00:00
j added the
general
label 2013-05-01 14:42:09 +00:00
0x2620 was assigned by j 2013-05-01 14:42:09 +00:00
j added the
frontend
label 2013-05-01 14:42:09 +00:00
rlx was assigned by j 2013-05-01 14:42:09 +00:00
rlx was assigned by j 2013-05-01 14:42:09 +00:00
rlx added this to the 13.02 milestone 2013-05-29 10:42:47 +00:00
rlx modified the milestone from 13.02 to 14.03 2014-02-09 18:50:56 +00:00
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: 0x2620/pandora#1480
No description provided.