You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 3, 2023. It is now read-only.
output of rustc -V: rustc 1.45.1 (c367798cf 2020-07-26)
output of node -v: v12.10.0
output of wrangler -V: π· β¨ wrangler 1.11.0
contents of wrangler.toml
type = "webpack"
account_id = "<ACCOUNT-ID>"
zone_id = "<ZONE-ID>"
[env.<STAGING-ENV>]
name = "<STAGING-NAME>"
route = "<STAGING-ROUTE>/*"
kv-namespaces = [{binding = "CACHE", id = "<KV-NAMESPACE-ID>"]
Steps to reproduce
I was trying to get a value from our kv cache using Wrangler but my key has a leading slash:
Validate that I can see the key with a leading slash listed in my namespace
β wrangler kv:key list --binding="CACHE" --env=<STAGING-ENV> --prefix="/2050001"
Try to get the key with a leading slash
β wrangler kv:key get --binding="CACHE" --env=<STAGING-ENV> "/2050001/1000"
What did you expect to see?
When I list my keys matching a prefix with a leading slash, I expected to see my key listed
β wrangler kv:key list --binding="CACHE" --env=<STAGING-ENV> --prefix="/2050001"
[{"name":"/2050001/1000","expiration":"2020-10-17T18:11:09Z"}]
When I try to get my key with a leading slash, I expected to see my value
β wrangler kv:key get --binding="CACHE" --env=<STAGING-ENV> "/2050001/1000"
<MY-VALUE>
What did you see instead?
I did see my key listed!
β wrangler kv:key list --binding="CACHE" --env=<STAGING-ENV> --prefix="/2050001"
[{"name":"/2050001/1000","expiration":"2020-10-17T18:11:09Z"}]
But when I tried to get it then I encountered a "not found" error
β wrangler kv:key get --binding="CACHE" --env=<STAGING-ENV> "/2050001/1000"
β οΈ Code 10009: get: 'key not found'
π΅οΈ Run `wrangler kv:key list` to see your existing keys
The text was updated successfully, but these errors were encountered:
π Bug Report
Environment
rustc -V
: rustc 1.45.1 (c367798cf 2020-07-26)node -v
: v12.10.0wrangler -V
: π· β¨ wrangler 1.11.0wrangler.toml
Steps to reproduce
I was trying to get a value from our kv cache using Wrangler but my key has a leading slash:
What did you expect to see?
When I list my keys matching a prefix with a leading slash, I expected to see my key listed
When I try to get my key with a leading slash, I expected to see my value
What did you see instead?
I did see my key listed!
But when I tried to get it then I encountered a "not found" error
The text was updated successfully, but these errors were encountered: