Monday storage persistent error

I’ve been having a consistent issue for the past couple of days. I have this code:

import { Storage } from '@mondaycom/apps-sdk';
const storage = new Storage(shortLivedToken);

const now = Date.now();
await storage.set(key, now);
...
const response = await storage.get(key);

when I log response I see this often:

  "response": {
    "success": true,
    "value": "[Undefined]",
    "version": "[Undefined]"
  },

a normal good response looks like:

{
  "response": {
    "success": true,
    "value": "1730228717706",
    "version": "3e283"
  },

Am I doing anything wrong here? This issue doesn’t happen 100% of the time but quite often.

1 Like

if shortLivedToken has expired, I would expect a thrown error or something explicit about it, not such a response indicating success.

My suspicion is the key-value store implements eventual consistency, where successful reads might return undefined values while changes propagate across the distributed system. So the value is undefined.

You are correct, its likely the eventual consistency.

1 Like