ERROR - server - Error trying to receive messages: name 'txredisapi' is not defined

65 views
Skip to first unread message

Hank Chu

unread,
Jul 12, 2018, 7:22:34 AM7/12/18
to Django users
2018-07-12 17:35:08,070 - INFO - worker - Listening on channels http.request, websocket.connect, websocket.disconnect, websocket.receive
2018-07-12 17:35:08,072 - INFO - server - HTTP/2 support not enabled (install the http2 and tls Twisted extras)
2018-07-12 17:35:08,075 - INFO - server - Using native Twisted mode on channel layer
2018-07-12 17:35:08,075 - INFO - server - Listening on endpoint tcp:port=80:interface=10.144.1.123
2018-07-12 17:35:08,077 - ERROR - server - Error trying to receive messages: name 'txredisapi' is not defined
2018-07-12 17:35:13,079 - ERROR - server - Error trying to receive messages: name 'txredisapi' is not defined

Can someone help me to fix this problem?

this my django's setting.py
redis_host = '10.144.1.123'
CHANNEL_LAYERS = {
    "default": {
        "BACKEND": "asgi_redis.RedisChannelLayer", 
        "CONFIG": {
            "hosts": [(redis_host, 6379)],
        },
       "ROUTING": "coverage_wabsys_py3.routing.channel_routing",
    },
}

Andrew Godwin

unread,
Jul 13, 2018, 5:27:06 PM7/13/18
to django...@googlegroups.com
What version of Channels are you using? It looks like you're trying to use Channels 1 without Twisted redis support installed - did you try installing the package it's asking for?

Andrew

--
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...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/e3405fbd-1f5a-407b-a18e-138f53a2fe6e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Hank Chu

unread,
Aug 2, 2018, 6:18:05 AM8/2/18
to Django users
Hi Andrew,

after update channels to 1.1.5, it's fixed.

thanks.

Andrew Godwin於 2018年7月14日星期六 UTC+8上午5時27分06秒寫道:
Reply all
Reply to author
Forward
0 new messages