[go: up one dir, main page]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calling an unsupported command in a lua script results in an unclear error #1336

Open
hertzquake opened this issue Nov 25, 2023 · 0 comments

Comments

@hertzquake
Copy link

I have a lua script that was calling zmpop (which is, at the time of writing, unsupported).

Calling this script results in this error: Error trying to loading or executing lua code string in VM: null
I traced the error down, and found that:

 TypeError: Cannot read properties of undefined (reading 'bind')
    at _RedisMock.<anonymous> (node_modules/ioredis-mock/src/commands/defineCommand.js:58:19)
    at Object.luaD_precall (/node_modules/fengari/src/ldo.js:169:21)
    [very long stack trace omitted...]

The interesting line here is (src/commands/defineCommand.js:52):

const redisCmd = commands[name].bind(this)
@hertzquake hertzquake changed the title Calling an unsupported method in a lua script results in an unclear error Calling an unsupported command in a lua script results in an unclear error Nov 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant