Skip to content

bug report exploration#171

Draft
mike-marcacci wants to merge 2 commits intomainfrom
bug-report-exploration
Draft

bug report exploration#171
mike-marcacci wants to merge 2 commits intomainfrom
bug-report-exploration

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