KV list is returning an empty iterator, but data is there and gettable via get
Hello. To simplify things, I am setting a key of
["accounts", account.name]
but when I try to get the accounts with kv.list({ prefix: ["accounts"] })
, I always get an empty iterator back. I am able to see the record exist when using kv.get()
.
Here are the relevant snippets; what am I doing wrong, or is this a bug?:
2 Replies
That doesn't seem right! Can you simplify this into a minimal example that I can try out locally?
sure !one moment
Hmmm it seems to work fine in this isolated example:
Where it's not working for me behind a Hono route so there may be something there I'm missing, I'll report back if I figure it out.
Very confused but it seems to be working now w/Hono. Not entirely sure why. Thanks 🙂