You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/opt/venv/lib/python3.10/site-packages/huey/api.py", line 382, in _execute
task_value = task.execute()
File "/opt/venv/lib/python3.10/site-packages/huey/api.py", line 807, in execute
return func(*args, **kwargs)
File "/app/home/tasks.py", line 70, in google_custom_search
word_obj, _ = Word.objects.get_or_create(word=word)
File "/opt/venv/lib/python3.10/site-packages/django/db/models/manager.py", line 87, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File "/opt/venv/lib/python3.10/site-packages/django/db/models/query.py", line 946, in get_or_create
return self.get(**kwargs), False
File "/opt/venv/lib/python3.10/site-packages/django/db/models/query.py", line 643, in get
num = len(clone)
File "/opt/venv/lib/python3.10/site-packages/django/db/models/query.py", line 380, in __len__
self._fetch_all()
File "/opt/venv/lib/python3.10/site-packages/django/db/models/query.py", line 1926, in _fetch_all
self._result_cache = list(self._iterable_class(self))
File "/opt/venv/lib/python3.10/site-packages/django/db/models/query.py", line 91, in __iter__
results = compiler.execute_sql(
File "/opt/venv/lib/python3.10/site-packages/django/db/models/sql/compiler.py", line 1560, in execute_sql
cursor = self.connection.cursor()
File "/opt/venv/lib/python3.10/site-packages/django/utils/asyncio.py", line 26, in inner
return func(*args, **kwargs)
File "/opt/venv/lib/python3.10/site-packages/django/db/backends/base/base.py", line 316, in cursor
return self._cursor()
File "/opt/venv/lib/python3.10/site-packages/django/db/backends/base/base.py", line 293, in _cursor
with self.wrap_database_errors:
File "/opt/venv/lib/python3.10/site-packages/django/db/utils.py", line 91, in __exit__
raise dj_exc_value.with_traceback(traceback) from exc_value
File "/opt/venv/lib/python3.10/site-packages/django/db/backends/base/base.py", line 294, in _cursor
return self._prepare_cursor(self.create_cursor(name))
File "/opt/venv/lib/python3.10/site-packages/django/utils/asyncio.py", line 26, in inner
return func(*args, **kwargs)
File "/opt/venv/lib/python3.10/site-packages/django/db/backends/postgresql/base.py", line 330, in create_cursor
cursor = self.connection.cursor()
django.db.utils.InterfaceError: connection already closed
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: