{"record":{"id":"22d2a6aba9499ce5","repo":"diegosouzapw/OmniRoute","slug":"notion-api-request-timed-out-after-55s","errorCode":null,"errorMessage":"Notion API request timed out after 55s","messagePattern":"Notion API request timed out after 55s","errorType":"exception","errorClass":"NotionTimeoutError","httpStatus":null,"severity":"error","filePath":"src/lib/notion/api.ts","lineNumber":139,"sourceCode":"          const waitMs = error.retryAfter * 1000 + Math.pow(2, attempt) * 200;\n          await sleep(waitMs);\n          continue;\n        }\n\n        if (error instanceof NotionServerError && attempt < MAX_RETRIES - 1) {\n          lastError = error;\n          await sleep(Math.pow(2, attempt) * 500);\n          continue;\n        }\n\n        throw error;\n      }\n\n      return response.json();\n    } catch (err) {\n      if (err instanceof Error && err.name === \"AbortError\") {\n        clearTimeout(timeout);\n        throw new NotionTimeoutError(\"Notion API request timed out after 55s\");\n      }\n      if (err instanceof NotionAuthError || err instanceof NotionNotFoundError || err instanceof NotionValidationError) {\n        clearTimeout(timeout);\n        throw err;\n      }\n      if (attempt < MAX_RETRIES - 1) {\n        lastError = err instanceof Error ? err : new NotionServerError(String(err));\n        await sleep(Math.pow(2, attempt) * 500);\n        continue;\n      }\n    }\n  }\n\n  clearTimeout(timeout);\n  throw lastError ?? new NotionServerError(\"Exhausted all retries\");\n}\n\nfunction combineSignals(...signals: AbortSignal[]): AbortSignal {","sourceCodeStart":121,"sourceCodeEnd":157,"githubUrl":"https://github.com/diegosouzapw/OmniRoute/blob/a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d/src/lib/notion/api.ts#L121-L157","documentation":"Error \"Notion API request timed out after 55s\" thrown in diegosouzapw/OmniRoute.","triggerScenarios":"Thrown at src/lib/notion/api.ts:139 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d","analyzedAt":"2026-08-25T18:35:09.898Z","schemaVersion":2},"datasetVersion":"2026-08-25T21:54:21.419Z"}