Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tasks tracebacks #5

Open
fauzaanu opened this issue Mar 9, 2024 · 0 comments
Open

tasks tracebacks #5

fauzaanu opened this issue Mar 9, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@fauzaanu
Copy link
Owner

fauzaanu commented Mar 9, 2024

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
@fauzaanu fauzaanu added the bug Something isn't working label Mar 9, 2024
@fauzaanu fauzaanu self-assigned this Mar 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant