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

bug report exploration #171

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

bug report exploration #171

wants to merge 2 commits into from

Conversation

mike-marcacci
Copy link
Owner

This is an exploration of bug reports such as #168, with the goal of reproducing the experienced issues.

@carycodes
Copy link

carycodes commented May 25, 2022

I experienced a similar issue to what was described in #168 (unexpected "unable to achieve quorum" errors). I captured the error and looked at the attempts field, where I discovered this more specific error message:

node_redis: The EVALSHA command contains a invalid argument type.
  Only strings, dates and buffers are accepted. Please update your code 
to use valid argument types.

If I am understanding the API correctly, in index.ts around line 555, we should be calling

client.evalsha(script.hash, keys.length, ...keys, ...args)

not

client.evalsha(script.hash, keys.length, [...keys, ...args])

but I haven't had an opportunity to test that.

Environment:
Nodejs 16.14.0
Redlock 5.0.0-beta.2
Windows 10

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

Successfully merging this pull request may close these issues.

2 participants