Hi , I am having an issue with django that seems to arise from `"/usr/local/lib/python3.7/site-packages/django/core/cache/backends/base.py" in validate_key` . This is after i updated from django 1.11.x to django 2.2 for python 3.5 to 3.7. the logs are a shown. File "/code/frontend/views.py" in _checklogin 95. return view_func(request, *args, **kwargs)File "/code/frontend/views.py" in get_progress 200. data['status'] = task.statusFile "/usr/local/lib/python3.7/site-packages/celery/result.py" in state 475. return self._get_task_meta()['status']File "/usr/local/lib/python3.7/site-packages/celery/result.py" in _get_task_meta 414. return self._maybe_set_cache(self.backend.get_task_meta( self.id))File "/usr/local/lib/python3.7/site-packages/celery/backends/base.py" in get_task_meta 451. meta = self._get_task_meta_for(task_id)File "/usr/local/lib/python3.7/site-packages/celery/backends/base.py" in _get_task_meta_for 771. meta = self.get(self.get_key_for_task(task_id))File "/usr/local/lib/python3.7/site-packages/django_celery_results/backends/cache.py" in get 19. return self.cache_backend.get(key)File "/usr/local/lib/python3.7/site-packages/django/core/cache/backends/db.py" in get 52. return self.get_many([key], version).get(key, default)File "/usr/local/lib/python3.7/site-packages/django/core/cache/backends/db.py" in get_many 60. self.validate_key(key)File "/usr/local/lib/python3.7/site-packages/django/core/cache/backends/base.py" in validate_key 251. if ord(char) < 33 or ord(char) == 127:Exception Type: TypeError at /scheduling/get_progress/ Exception Value: ord() expected string of length 1, but int found
After further debugging I found out it was a celery task id that was being used to monitor task progress that was causing this issue because it was in bytes, how can I go about this, if I switch branch to django 1.11 it works fine. b'celery-task-meta-23d118e8-144c-4178-bf1e-beeb9b04cb7f' -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/6159a25b-83d7-4c13-b3d3-a6a7bf42a289%40googlegroups.com.