GithubHelp home page GithubHelp logo

Serverless AWS Redis results in `redis.exceptions.ResponseError: Lua scripts without any input keys are not supported.` about channels_redis HOT 2 OPEN

Jonathan-Landeed avatar Jonathan-Landeed commented on August 16, 2024
Serverless AWS Redis results in `redis.exceptions.ResponseError: Lua scripts without any input keys are not supported.`

from channels_redis.

Comments (2)

carltongibson avatar carltongibson commented on August 16, 2024 1

Grrr. There's not going to be anything we can do about this.

The PubSub channel layer doesn't use Lua so you could try that.

from channels_redis.

root4417 avatar root4417 commented on August 16, 2024

I'm using the ServerLess Redis Cache from ElastiCache AWS and getting the error.

Exception inside application: Lua scripts without any input keys are not supported.
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/channels/routing.py", line 62, in call
return await application(scope, receive, send)
File "/usr/local/lib/python3.10/site-packages/channels/routing.py", line 62, in call
return await application(scope, receive, send)
File "/usr/local/lib/python3.10/site-packages/channels/sessions.py", line 47, in call
return await self.inner(dict(scope, cookies=cookies), receive, send)
File "/usr/local/lib/python3.10/site-packages/channels/sessions.py", line 263, in call
return await self.inner(wrapper.scope, receive, wrapper.send)
File "/usr/local/lib/python3.10/site-packages/channels/auth.py", line 185, in call
return await super().call(scope, receive, send)
File "/usr/local/lib/python3.10/site-packages/channels/middleware.py", line 24, in call
return await self.inner(scope, receive, send)
File "/usr/local/lib/python3.10/site-packages/channels/routing.py", line 116, in call
return await application(
File "/usr/local/lib/python3.10/site-packages/channels/consumer.py", line 94, in app
return await consumer(scope, receive, send)
File "/usr/local/lib/python3.10/site-packages/channels/consumer.py", line 58, in call
await await_many_dispatch(
File "/usr/local/lib/python3.10/site-packages/channels/utils.py", line 57, in await_many_dispatch
await task
redis.exceptions.ResponseError: Lua scripts without any input keys are not supported.

Here is the config:

CHANNEL_LAYERS = {
    'default': {
        'BACKEND': 'channels_redis.core.RedisChannelLayer',
        'CONFIG': {
            'hosts': [{
                "address": REDIS_HOST,  # "REDIS_TLS_URL"
                "ssl_cert_reqs": None,
            }],
            'expiry': 360,

        },
    },
}

.env redis host:

REDIS_HOST=rediss://<>.serverless.euw2.cache.amazonaws.com:6379

from channels_redis.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.