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: xrange failed to parse empty string #363

Open
biluohc opened this issue Feb 14, 2023 · 0 comments
Open

Bug: xrange failed to parse empty string #363

biluohc opened this issue Feb 14, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@biluohc
Copy link

biluohc commented Feb 14, 2023

redis-cli

127.0.0.1:6379> xadd x  * '' 1
"1676359882053-0"
127.0.0.1:6379> xrange x - + 
1) 1) "1676359882053-0"
   2) 1) ""
      2) "1"

xrange got an empty fieldValues

// import { connect, parseURL } from "https://deno.land/x/redis@v0.29.1/mod.ts";

{ xid: { unixMs: 1676359882053, seqNo: 0 }, fieldValues: {} }
error: Uncaught (in promise) SyntaxError: "undefined" is not valid JSON
    const js = JSON.parse(x[i].fieldValues[""])
@uki00a uki00a added the bug Something isn't working label Feb 27, 2023
@uki00a uki00a self-assigned this Feb 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants