server error after import
feltz916 opened this issue · 1 comments
feltz916 commented
New setup, I processed 5 books successfully. At some point when i went back later to try another, server was crashed with error 500.
Now, i get this error every time i start the instance.
[2024-07-27 18:11:38,466: INFO/ForkPoolWorker-1] --------------- Done processing B00HWF0MHW ---------------
[2024-07-27 18:11:38,467: INFO/ForkPoolWorker-1] Task importer.tasks.m4b_merge_task[4914fb7c-9574-44e6-9b5c-947a99469b79] succeeded in 91.17121528461576s: None
Internal Server Error: /books
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/django/core/handlers/exception.py", line 55, in inner
response = get_response(request)
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/django/core/handlers/base.py", line 197, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/django/views/generic/base.py", line 104, in view
return self.dispatch(request, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/django/views/generic/base.py", line 143, in dispatch
return handler(request, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/app/web/importer/views.py", line 217, in get
return render(request, self.template_name, self.get_context_data(
^^^^^^^^^^^^^^^^^^^^^^
File "/home/app/web/importer/views.py", line 224, in get_context_data
if redirect_url.rsplit('/', 1)[1] == "match":
~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^
IndexError: list index out of range
djdembeck commented
I suspect there's more going wrong, but I've added a change that should at least enable you to get to the /books
page now.