acdh-oeaw / apis-core

https://acdh-oeaw.github.io/apis-core/
MIT License
11 stars 3 forks source link

AttributeError: 'NoneType' object has no attribute 'startswith' #381

Closed sentry-io[bot] closed 1 year ago

sentry-io[bot] commented 1 year ago

Sentry Issue: APIS-MPR-1

AttributeError: 'NoneType' object has no attribute 'startswith'
(4 additional frame(s) were not displayed)
...
  File "rest_framework/views.py", line 509, in dispatch
    response = self.handle_exception(exc)
  File "rest_framework/views.py", line 469, in handle_exception
    self.raise_uncaught_exception(exc)
  File "rest_framework/views.py", line 480, in raise_uncaught_exception
    raise exc
  File "rest_framework/views.py", line 506, in dispatch
    response = handler(request, *args, **kwargs)
  File "apis_core/apis_entities/api_views.py", line 111, in get
    if requested_format.startswith('text/html') and not data_view and not format_param:
csae8092 commented 1 year ago

this is something I think I messed up, although I wonder how it is possible to send an request without and format?