Loading examples is broken. Importing the same config and then running seems to work. Traceback:
Opening in existing browser session.
Performing system checks...
System check identified no issues (0 silenced).
November 25, 2019 - 08:10:07
Django version 2.2.7, using settings 'cx_gui.settings'
Starting development server at http://127.0.0.1:56829/
Quit the server with CONTROL-C.
Internal Server Error: /load_example
Traceback (most recent call last):
File "/home/henhok/newCX2/lib/python3.6/site-packages/django/core/handlers/exception.py", line 34, in inner
response = get_response(request)
File "/home/henhok/newCX2/lib/python3.6/site-packages/django/core/handlers/base.py", line 115, in _get_response
response = self.process_exception_by_middleware(e, request)
File "/home/henhok/newCX2/lib/python3.6/site-packages/django/core/handlers/base.py", line 113, in _get_response
response = wrapped_callback(request, *callback_args, callback_kwargs)
File "/home/henhok/newCX2/lib/python3.6/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
return view_func(*args, *kwargs)
File "/home/henhok/PycharmProjects/CxSystem2/cxsystem2/gui/cx_gui/editor/views.py", line 174, in load_example
auth_response = is_authorized(request)
File "/home/henhok/PycharmProjects/CxSystem2/cxsystem2/gui/cx_gui/editor/views.py", line 28, in is_authorized
session_token = request.headers['Authorization'].split(' ')[1]
IndexError: list index out of range
Internal Server Error: /load_example
Traceback (most recent call last):
File "/home/henhok/newCX2/lib/python3.6/site-packages/django/core/handlers/exception.py", line 34, in inner
response = get_response(request)
File "/home/henhok/newCX2/lib/python3.6/site-packages/django/core/handlers/base.py", line 115, in _get_response
response = self.process_exception_by_middleware(e, request)
File "/home/henhok/newCX2/lib/python3.6/site-packages/django/core/handlers/base.py", line 113, in _get_response
response = wrapped_callback(request, callback_args, callback_kwargs)
File "/home/henhok/newCX2/lib/python3.6/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
return view_func(*args, **kwargs)
File "/home/henhok/PycharmProjects/CxSystem2/cxsystem2/gui/cx_gui/editor/views.py", line 174, in load_example
auth_response = is_authorized(request)
File "/home/henhok/PycharmProjects/CxSystem2/cxsystem2/gui/cx_gui/editor/views.py", line 28, in is_authorized
session_token = request.headers['Authorization'].split(' ')[1]
IndexError: list index out of range
"POST /load_example HTTP/1.1" 500 19861
"POST /load_example HTTP/1.1" 500 19858
Loading examples is broken. Importing the same config and then running seems to work. Traceback:
Opening in existing browser session. Performing system checks...
System check identified no issues (0 silenced). November 25, 2019 - 08:10:07 Django version 2.2.7, using settings 'cx_gui.settings' Starting development server at http://127.0.0.1:56829/ Quit the server with CONTROL-C. Internal Server Error: /load_example Traceback (most recent call last): File "/home/henhok/newCX2/lib/python3.6/site-packages/django/core/handlers/exception.py", line 34, in inner response = get_response(request) File "/home/henhok/newCX2/lib/python3.6/site-packages/django/core/handlers/base.py", line 115, in _get_response response = self.process_exception_by_middleware(e, request) File "/home/henhok/newCX2/lib/python3.6/site-packages/django/core/handlers/base.py", line 113, in _get_response response = wrapped_callback(request, *callback_args, callback_kwargs) File "/home/henhok/newCX2/lib/python3.6/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view return view_func(*args, *kwargs) File "/home/henhok/PycharmProjects/CxSystem2/cxsystem2/gui/cx_gui/editor/views.py", line 174, in load_example auth_response = is_authorized(request) File "/home/henhok/PycharmProjects/CxSystem2/cxsystem2/gui/cx_gui/editor/views.py", line 28, in is_authorized session_token = request.headers['Authorization'].split(' ')[1] IndexError: list index out of range Internal Server Error: /load_example Traceback (most recent call last): File "/home/henhok/newCX2/lib/python3.6/site-packages/django/core/handlers/exception.py", line 34, in inner response = get_response(request) File "/home/henhok/newCX2/lib/python3.6/site-packages/django/core/handlers/base.py", line 115, in _get_response response = self.process_exception_by_middleware(e, request) File "/home/henhok/newCX2/lib/python3.6/site-packages/django/core/handlers/base.py", line 113, in _get_response response = wrapped_callback(request, callback_args, callback_kwargs) File "/home/henhok/newCX2/lib/python3.6/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view return view_func(*args, **kwargs) File "/home/henhok/PycharmProjects/CxSystem2/cxsystem2/gui/cx_gui/editor/views.py", line 174, in load_example auth_response = is_authorized(request) File "/home/henhok/PycharmProjects/CxSystem2/cxsystem2/gui/cx_gui/editor/views.py", line 28, in is_authorized session_token = request.headers['Authorization'].split(' ')[1] IndexError: list index out of range "POST /load_example HTTP/1.1" 500 19861 "POST /load_example HTTP/1.1" 500 19858