在我的服务器中,我正在为 Django 频道运行 Daphne 和 Worker。
我已经重启了所有容器(我使用 Docker),清理了 Redis 缓存。
今天,这些应用程序停止工作并返回此堆栈:
KeyError: 'leads-198'
2019-03-27 13:51:59,719 - ERROR - worker - Error processing message with consumer crm.consumers.ws_connect:
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/channels/worker.py", line 119, in run
consumer(message, **kwargs)
File "/usr/local/lib/python3.6/site-packages/channels/sessions.py", line 78, in inner
return func(*args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/channels/auth.py", line 42, in inner
return func(message, *args, **kwargs)
File "/opt/app/integrador/crm/consumers.py", line 10, in ws_connect
Group(group).add(message.reply_channel)
File "/usr/local/lib/python3.6/site-packages/channels/channel.py", line 70, in add
self.channel_layer.group_add(self.name, channel)
File "/usr/local/lib/python3.6/site-packages/asgi_redis/core.py", line 291, in group_add
**{channel: time.time()}
TypeError: zadd() got an unexpected keyword argument 'daphne.response.lGekRGuTPv!bsgpJbNJLP'
crm - 是我在 Django 中的应用程序
Leads-198 - 是频道组
要求.txt:
博托3
核心API
姜戈==1.11
asgi_redis==1.2.1
频道==1.1.8
达芙妮==1.3
芹菜==4.1
PyMySQL
djangorestframework==3.7.7
django-oauth-toolkit==0.12.0
django-cors-headers==2.1.0
django-redis==4.5.0
django-storages==1.5.1
乌鸦==5.30.0
jsonfield==1.0.3
请求==2.18.4
简单的json
suds-py3==1.3.2.0
xmltodict==0.10.2
有什么建议吗?
谢谢