Cache deserialization error

CacheError [ERR_DESERIALIZATION]: Unable to deserialize stored cached data due to missing metadata.
The cached data storage format changed in Miniflare 2. You cannot load cached data created with Miniflare 1 and must delete it.
CacheError [ERR_DESERIALIZATION]: Unable to deserialize stored cached data due to missing metadata.
The cached data storage format changed in Miniflare 2. You cannot load cached data created with Miniflare 1 and must delete it.
this just randomly happened for data that was just cached minutes before
3 Replies
MrBBot
MrBBot•2y ago
Hey! 👋 Are you able to reproduce this reliably? If so, could you share the code around the caches.*.put() call?
sathoro
sathoro•2y ago
it only randomly happened one time - very odd
MrBBot
MrBBot•2y ago
Hmmm, potentially a race condition with multiple concurrent cache calls. 😕 Those should be fixed in Miniflare 3
Want results from more Discord servers?
Add your server