{"record":{"id":"dd9d72f17de6c56d","repo":"mem0ai/mem0","slug":"event-management-is-only-available-in-platform-mod","errorCode":null,"errorMessage":"Event management is only available in platform mode.","messagePattern":"Event management is only available in platform mode\\.","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"integrations/openclaw/providers.ts","lineNumber":635,"sourceCode":"      }\n      if (memoryId) {\n        await provider.delete(memoryId);\n        return { deleted: memoryId };\n      }\n      throw new Error(\"Either memoryId or all is required\");\n    },\n\n    async deleteEntities() {\n      throw new Error(\"Entity management is only available in platform mode.\");\n    },\n    async status() {\n      return { connected: true, backend: \"oss\" };\n    },\n    async entities() {\n      throw new Error(\"Entity management is only available in platform mode.\");\n    },\n    async listEvents() {\n      throw new Error(\"Event management is only available in platform mode.\");\n    },\n    async getEvent() {\n      throw new Error(\"Event management is only available in platform mode.\");\n    },\n  };\n}\n","sourceCodeStart":617,"sourceCodeEnd":642,"githubUrl":"https://github.com/mem0ai/mem0/blob/001c235229be8795e3834520467bd0d661ed8f34/integrations/openclaw/providers.ts#L617-L642","documentation":"Thrown by the OSS provider's listEvents() because the events API (memory ingestion/update event history) exists only on the Mem0 platform. OSS mode has no event ledger, so the stub throws a clear 'platform mode only' error rather than returning fabricated or empty data.","triggerScenarios":"Calling provider.listEvents() while in open-source mode — e.g. an audit or history tooling flow ported from a platform-mode deployment.","commonSituations":"Same skill/plugin used across modes; debugging 'why did this memory change' workflows that rely on event history and are run against a local OSS setup.","solutions":["Gate on provider.status().backend === 'platform' before calling listEvents()/getEvent().","For OSS debugging, inspect the local vector store directly instead of the events API.","Use platform mode if event history is required."],"exampleFix":"// before\nconst events = await provider.listEvents(); // throws in OSS mode\n\n// after\nconst events = (await provider.status()).backend === 'platform'\n  ? await provider.listEvents()\n  : [];","handlingStrategy":"try-catch","validationCode":"const { backend } = await provider.status();\nconst events = backend === 'platform' ? await provider.listEvents() : [];","typeGuard":null,"tryCatchPattern":"try {\n  return await provider.listEvents();\n} catch (err) {\n  if ((err as Error).message.includes('platform mode')) return [];\n  throw err;\n}","preventionTips":["Gate event-history features on backend mode at the feature-flag level.","For OSS debugging, read the local vector store instead of the events API."],"tags":["oss-mode","events","mode-mismatch","typescript"],"backgroundTag":null,"analyzedSha":"001c235229be8795e3834520467bd0d661ed8f34","analyzedAt":"2026-08-15T01:55:42.685Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}