ConnectionError (Error UNKNOWN
) since updating to Channels 4.0.0
#2082
Unanswered
alexanderjulmer
asked this question in
Help!
Replies: 1 comment
-
It looks like a connection error of some kind. It's not anything Channels specific. Sorry to not be able to help. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi y'all,
we've recently upgraded our application to Django 5 and Channels 4. We've installed the following packages relevant (I think) for async:
We are using Redis 6.2.14 with
noeviction
on Heroku.We're now experiencing errors throughout the async part of the application. Unfortunately, we haven't yet figured out how to reproduce these errors reliably. They don't seem to affect all users all the time and the user experience does not seem to be affected at all.
Using the excellent stack traces from Sentry, these is the last code on our side that triggers the errors. The first two seem to be particularly effected.
From here, by pure co-occurence one might suspect
get_annotation_group_name
to be the culprit, but it's simplyThe actual error seems to be raised in the
send_packed_command
method inredis/asyncio/connection.py
. Here's an exemplary stack trace:Prior research
channels
not involved, comment suggestsasync_to_sync
as a possible solution. This seems not to be the issue for us.You help is greatly appreciated.
Attempted fixes
daphne
instead of uvicorn: no effectpy-redis^5.0.3
: no effectBeta Was this translation helpful? Give feedback.
All reactions