'RedisChannelLayer' object has no attribute 'groups'

407 views
Skip to first unread message

Fabien Toune

unread,
Apr 25, 2019, 8:02:16 AM4/25/19
to Django users
Hi, using redis_channels 2.0.4 with Django 2.0 and daphne 2.3.0 I get this error :

Exception inside application: 'RedisChannelLayer' object has no attribute 'groups'

All works fine if I use InMemoryChannelLayer

settings.py :

CHANNEL_LAYERS = {
    "default": {
        "BACKEND": "channels_redis.core.RedisChannelLayer",
        "CONFIG": {
            "hosts": [("localhost", 6379)],
        },
    },
}

redis server is up and running fine - tested with redis-cli

and the part that use it :

        async_to_sync(self.channel_layer.group_send)(
            "lobby",
            {
                'type': 'join.message',
                'message': html,
            }
        )

Any help welcome...
Reply all
Reply to author
Forward
0 new messages