Server Error: ParseResults([ParseResults([13, 57], {})], {'miltime': [13, 57]})
A few of these popped up when a user was trying to make a superevent query:
Internal Server Error: /api/superevents/
KeyError at /api/superevents/
ParseResults([ParseResults([13, 57], {})], {'miltime': [13, 57]})
Request Method: GET
Request URL: http://gracedb-playground.ligo.org/api/superevents/?query=created%3A+1357152000.000000+..+1360608000.000000
Django Version: 3.2.16
Python Executable: /usr/bin/python3
Python Version: 3.7.3
Python Path: ['/usr/local/bin', '/usr/local/lib/python3.7/dist-packages', '/app/gracedb_project', '/usr/lib/python37.zip', '/usr/lib/python3.7', '/usr/lib/python3.7/lib-dynload', '/usr/lib/python3/dist-packages', '/app/gracedb_project', '/app/gracedb_project/gracedb', '/usr/local/lib/python3.7/dist-packages/IPython/extensions']
Server time: Tue, 28 Feb 2023 19:13:49 +0000
Installed Applications:
[...]
Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/django/core/handlers/exception.py", line 47, in inner
response = get_response(request)
File "/usr/local/lib/python3.7/dist-packages/django/core/handlers/base.py", line 181, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/usr/local/lib/python3.7/dist-packages/django/views/decorators/cache.py", line 44, in _wrapped_view_func
response = view_func(request, *args, **kwargs)
File "/usr/local/lib/python3.7/dist-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
return view_func(*args, **kwargs)
File "/usr/local/lib/python3.7/dist-packages/rest_framework/viewsets.py", line 125, in view
return self.dispatch(request, *args, **kwargs)
File "/usr/local/lib/python3.7/dist-packages/rest_framework/views.py", line 509, in dispatch
response = self.handle_exception(exc)
File "/usr/local/lib/python3.7/dist-packages/rest_framework/views.py", line 469, in handle_exception
self.raise_uncaught_exception(exc)
File "/usr/local/lib/python3.7/dist-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
raise exc
File "/usr/local/lib/python3.7/dist-packages/rest_framework/views.py", line 506, in dispatch
response = handler(request, *args, **kwargs)
File "/usr/local/lib/python3.7/dist-packages/rest_framework/mixins.py", line 38, in list
queryset = self.filter_queryset(self.get_queryset())
File "/usr/local/lib/python3.7/dist-packages/rest_framework/generics.py", line 150, in filter_queryset
queryset = backend().filter_queryset(self.request, queryset, self)
File "/app/gracedb_project/gracedb/api/v1/superevents/filters.py", line 38, in filter_queryset
filter_params = parseSupereventQuery(query)
File "/app/gracedb_project/gracedb/search/query/superevents.py", line 293, in parseSupereventQuery
matches = (stringStart + OneOrMore(q) + stringEnd).parseString(s).asList()
File "/usr/local/lib/python3.7/dist-packages/pyparsing/core.py", line 1131, in parse_string
loc, tokens = self._parse(instring, 0)
File "/usr/local/lib/python3.7/dist-packages/pyparsing/core.py", line 817, in _parseNoCache
loc, tokens = self.parseImpl(instring, pre_loc, doActions)
File "/usr/local/lib/python3.7/dist-packages/pyparsing/core.py", line 3886, in parseImpl
loc, exprtokens = e._parse(instring, loc, doActions)
File "/usr/local/lib/python3.7/dist-packages/pyparsing/core.py", line 817, in _parseNoCache
loc, tokens = self.parseImpl(instring, pre_loc, doActions)
File "/usr/local/lib/python3.7/dist-packages/pyparsing/core.py", line 4790, in parseImpl
loc, tokens = self_expr_parse(instring, loc, doActions)
File "/usr/local/lib/python3.7/dist-packages/pyparsing/core.py", line 817, in _parseNoCache
loc, tokens = self.parseImpl(instring, pre_loc, doActions)
File "/usr/local/lib/python3.7/dist-packages/pyparsing/core.py", line 3999, in parseImpl
loc2, toks = expr1._parse(instring, loc, doActions)
File "/usr/local/lib/python3.7/dist-packages/pyparsing/core.py", line 817, in _parseNoCache
loc, tokens = self.parseImpl(instring, pre_loc, doActions)
File "/usr/local/lib/python3.7/dist-packages/pyparsing/core.py", line 3886, in parseImpl
loc, exprtokens = e._parse(instring, loc, doActions)
File "/usr/local/lib/python3.7/dist-packages/pyparsing/core.py", line 817, in _parseNoCache
loc, tokens = self.parseImpl(instring, pre_loc, doActions)
File "/usr/local/lib/python3.7/dist-packages/pyparsing/core.py", line 3999, in parseImpl
loc2, toks = expr1._parse(instring, loc, doActions)
File "/usr/local/lib/python3.7/dist-packages/pyparsing/core.py", line 817, in _parseNoCache
loc, tokens = self.parseImpl(instring, pre_loc, doActions)
File "/usr/local/lib/python3.7/dist-packages/pyparsing/core.py", line 4117, in parseImpl
doActions,
File "/usr/local/lib/python3.7/dist-packages/pyparsing/core.py", line 856, in _parseNoCache
tokens = fn(instring, tokens_start, ret_tokens)
File "/usr/local/lib/python3.7/dist-packages/pyparsing/core.py", line 291, in wrapper
ret = func(*args[limit:])
File "/app/gracedb_project/gracedb/events/nltime.py", line 82, in convertToAbsTime
}[timeOfDayStr]
Exception Type: KeyError at /api/superevents/
Exception Value: ParseResults([ParseResults([13, 57], {})], {'miltime': [13, 57]})
Request information:
USER: ryan.magee@ligo.org
GET:
query = 'created: 1357152000.000000 .. 1360608000.000000'
POST: No POST data
FILES: No FILES data
might have something to do with the number of decimal points...? not sure yet