{"record":{"id":"7882668a380c46e6","repo":"mem0ai/mem0","slug":"errordata-error-request-failed","errorCode":null,"errorMessage":"${errorData.error || \"Request failed\"}","messagePattern":"\\$\\{errorData\\.error \\|\\| \"Request failed\"\\}","errorType":"http","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"server/dashboard/src/utils/api.ts","lineNumber":104,"sourceCode":"  const postStream = async (url: string, data: unknown): Promise<Response> => {\n    const response = await fetch(`${process.env.NEXT_PUBLIC_API_URL}${url}`, {\n      method: \"POST\",\n      headers: {\n        \"Content-Type\": \"application/json\",\n        Authorization: cachedToken ? `Bearer ${cachedToken}` : \"\",\n      },\n      body: JSON.stringify(data),\n    });\n\n    if (response.status === 401) {\n      handleTokenError();\n      redirectToLogin();\n      throw new Error(\"Unauthorized\");\n    }\n\n    if (!response.ok) {\n      const errorData = await response.json().catch(() => ({}));\n      throw new Error(errorData.error || \"Request failed\");\n    }\n\n    return response;\n  };\n\n  return Object.assign(api, { postStream });\n};\n\nexport const api = createApi();\n","sourceCodeStart":86,"sourceCodeEnd":114,"githubUrl":"https://github.com/mem0ai/mem0/blob/001c235229be8795e3834520467bd0d661ed8f34/server/dashboard/src/utils/api.ts#L86-L114","documentation":"Error \"${errorData.error || \"Request failed\"}\" thrown in mem0ai/mem0.","triggerScenarios":"Thrown at server/dashboard/src/utils/api.ts:104 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Inspect the response body for the server-provided error detail.","Verify request parameters and authentication credentials.","Retry after fixing the reported problem."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"001c235229be8795e3834520467bd0d661ed8f34","analyzedAt":"2026-08-15T01:55:42.685Z","schemaVersion":2},"datasetVersion":"2026-08-15T17:31:12.345Z"}