upstash / issues

Issue Tracker for Upstash
https://upstash.com
2 stars 0 forks source link

Double quoted Redis key breaks data browser in upstash console #53

Open LunaTK opened 1 year ago

LunaTK commented 1 year ago

Below cURL request produces visually duplicated keys in upstash console Data Browser.

curl -X POST \
  'https://YOUR_ENDPOINT.upstash.io/pipeline' \
  --header 'Authorization: Bearer YOUR_TOKEN_HERE' \
  --header 'Content-Type: text/plain' \
  --data-raw '[
["SET", "foo", "bar"],
["SET", "\"foo\"", "baz"]
]'

will produce

image

However, no matter which key you select (among the two foo), you will always see bar as a value, indicating that foo is the only key that can be selected, not the quoted "foo"

Also, I don't know if there is any way to query "foo" in the console CLI as well.


by removing foo, there only remains "foo", which is NONE type.

image

chronark commented 1 year ago

oh, that's an oversight thank you.