Closed Popolechien closed 5 years ago
Ah, here is a log: Environment: Request Method: GET Request URL: https://cardshop.hotspot.kiwix.org/all-orders/
Django Version: 2.2.4 Python Version: 3.7.4 Installed Applications: ['django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'manager'] Installed Middleware: ['django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware']
Traceback:
File "/usr/local/lib/python3.7/site-packages/django/core/handlers/exception.py" in inner
File "/usr/local/lib/python3.7/site-packages/django/core/handlers/base.py" in _get_response
File "/usr/local/lib/python3.7/site-packages/django/core/handlers/base.py" in _get_response
File "/usr/local/lib/python3.7/site-packages/django/contrib/auth/decorators.py" in _wrapped_view
File "./manager/views/all_orders.py" in list
Exception Type: TypeError at /all-orders/ Exception Value: 'NoneType' object is not iterable
Yes, I'm aware of this. Not sure there's a ticket though. It's a communication issue between the manager and the scheduler. thanks.
Checking for this kind of error should be covered by #114
this wouldn't show up in the health check as this is a bug in that this specific request takes to long to process/retrieve: manager works, scheduler works but this page's logic is buggy.
This is not systematic - but more often than not on a single session.