value too large in kv (30kb)

I'm getting a value too large error when setting a value in KV (on deploy) even though the value is small (around 30kb). Any idea why this might happen?
DAH
Deno AI Helper22d ago
I wasn't able to find the answer to your question in the official Deno documentation. However, based on the information you've provided, it's possible that there might be a misunderstanding or misinterpretation of the size limit for values in Deno Deploy's KV storage. Deno Deploy's KV storage has specific limits on the size of the values you can store. If you're encountering a "value too large" error, it could be due to exceeding these limits. It's important to ensure that the size of the value you're trying to store is within the allowed limits, including any overhead that might be introduced by encoding or other factors. Please note that this advice is not based on the Deno documentation, and I would advise you to double-check the accuracy of this advice. It's also a good idea to review the size of the value you're trying to store and confirm that it is indeed within the size limits specified by Deno Deploy's KV storage. If you continue to experience issues, you may want to reach out to the Deno community or support channels for further assistance.