{"record":{"id":"3ab49b95a83682fe","repo":"thedotmack/claude-mem","slug":"failed-to-load-datatype-response-statustext","errorCode":null,"errorMessage":"Failed to load ${dataType}: ${response.statusText}","messagePattern":"Failed to load (.+?): (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/ui/viewer/hooks/usePagination.ts","lineNumber":55,"sourceCode":"      return [];\n    }\n\n    stateRef.current = { ...stateRef.current, isLoading: true };\n    setState(prev => ({ ...prev, isLoading: true }));\n\n    const params = new URLSearchParams({\n      offset: offsetRef.current.toString(),\n      limit: UI.PAGINATION_PAGE_SIZE.toString()\n    });\n\n    if (currentFilter) {\n      params.append('project', currentFilter);\n    }\n\n    const response = await fetch(`${endpoint}?${params}`);\n\n    if (!response.ok) {\n      throw new Error(`Failed to load ${dataType}: ${response.statusText}`);\n    }\n\n    const data = await response.json() as { items: TItem[], hasMore: boolean };\n\n    const nextState = {\n      ...stateRef.current,\n      isLoading: false,\n      hasMore: data.hasMore\n    };\n    stateRef.current = nextState;\n\n    setState(prev => ({\n      ...prev,\n      isLoading: false,\n      hasMore: data.hasMore\n    }));\n\n    offsetRef.current += UI.PAGINATION_PAGE_SIZE;","sourceCodeStart":37,"sourceCodeEnd":73,"githubUrl":"https://github.com/thedotmack/claude-mem/blob/d768ba364302d12b76e69e4f021f0bb1d2d50ed6/src/ui/viewer/hooks/usePagination.ts#L37-L73","documentation":"Error \"Failed to load ${dataType}: ${response.statusText}\" thrown in thedotmack/claude-mem.","triggerScenarios":"Fires in the viewer UI when a paginated fetch of sessions/observations/summaries returns a non-2xx response, usually because the worker is not running, the configured worker port is wrong, or the route errored server-side. Guard at src/ui/viewer/hooks/usePagination.ts:55 turns the failed response into a readable error instead of rendering empty data.","commonSituations":"See trigger scenarios.","solutions":["Confirm the worker HTTP API is running and reachable from the viewer UI.","Check the worker logs for the failing endpoint and the returned statusText; fix authentication or project filter values if the request is rejected."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"d768ba364302d12b76e69e4f021f0bb1d2d50ed6","analyzedAt":"2026-08-12T23:52:55.241Z","schemaVersion":2},"datasetVersion":"2026-08-13T04:17:16.726Z"}