{"record":{"id":"cd770d65c5d7d79f","repo":"diegosouzapw/OmniRoute","slug":"deepseek-web-rate-limited-msg","errorCode":null,"errorMessage":"[DeepSeek-WEB] Rate limited: ${msg}","messagePattern":"\\[DeepSeek-WEB\\] Rate limited: (.+?)","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"open-sse/executors/deepseek-web-with-auto-refresh.ts","lineNumber":177,"sourceCode":"      const status = result?.response?.status;\n      if ((status === 401 || status === 403) && this.retryCount < this.maxRetries) {\n        const retried = await this.refreshAndRetry(input);\n        return retried ?? result;\n      }\n\n      return result;\n    } catch (error: unknown) {\n      // Defensive: keep handling genuinely thrown failures (e.g. a network error\n      // that escapes the base) even though the base normally returns Responses.\n      const msg = error instanceof Error ? error.message : String(error);\n      const isUnauthorized =\n        msg.includes(\"401\") || msg.includes(\"Unauthorized\") || msg.includes(\"expired\");\n      if (isUnauthorized && this.retryCount < this.maxRetries) {\n        const retried = await this.refreshAndRetry(input);\n        if (retried) return retried;\n      }\n      if (msg.includes(\"429\") || msg.includes(\"Rate limit\")) {\n        console.warn(\"[DeepSeek-WEB] Rate limited:\", msg);\n      }\n      throw error;\n    }\n  }\n}\n\nexport const deepseekWebWithAutoRefreshExecutor = new DeepSeekWebWithAutoRefreshExecutor();\n","sourceCodeStart":159,"sourceCodeEnd":185,"githubUrl":"https://github.com/diegosouzapw/OmniRoute/blob/a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d/open-sse/executors/deepseek-web-with-auto-refresh.ts#L159-L185","documentation":"Error \"[DeepSeek-WEB] Rate limited: ${msg}\" thrown in diegosouzapw/OmniRoute.","triggerScenarios":"Thrown at open-sse/executors/deepseek-web-with-auto-refresh.ts:177 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"}