{"record":{"id":"a5decb2dd1cf3c91","repo":"deepseek-ai/deepseek-harness","slug":"web-fetch-timeout","errorCode":"WEB_FETCH_TIMEOUT","errorMessage":"web fetch timed out","messagePattern":"web fetch timed out","errorType":"exception","errorClass":"WebError","httpStatus":null,"severity":"error","filePath":"packages/web/web-fetch-http/src/provider.ts","lineNumber":112,"sourceCode":"        currentUrl = validatedTarget\n        redirectsFollowed++\n        continue\n      }\n\n      return await this.readBody(response, currentUrl, signal)\n    }\n  }\n\n  private async requestOnce(url: URL, signal: AbortSignal): Promise<Response> {\n    try {\n      return await fetch(url, {\n        method: 'GET',\n        redirect: 'manual',\n        headers: { 'user-agent': this.limits.userAgent, 'accept': 'text/html,application/xhtml+xml,text/*;q=0.9,application/json;q=0.8' },\n        signal,\n      })\n    } catch (error: unknown) {\n      throw translateAbortOrNetwork(error, signal)\n    }\n  }\n\n  /** Read, byte-cap, classify, and decode the final response body. */\n  private async readBody(response: Response, finalUrl: URL, signal: AbortSignal): Promise<WebFetchResult> {\n    const contentType = response.headers.get('content-type')\n    const kind = classifyContentType(contentType)\n    if (kind === undefined) {\n      await response.body?.cancel()\n      throw new WebError(`unsupported content type \"${contentType ?? 'unknown'}\"`, 'WEB_UNSUPPORTED_CONTENT_TYPE')\n    }\n\n    // Resolve the decoder BEFORE reading the body so an unsupported charset\n    // fails without consuming the stream — but cancel the body on that failure\n    // so the socket does not leak (matching the unsupported-content-type path).\n    let decoder: TextDecoder\n    try {\n      decoder = decoderForCharset(parseCharset(contentType))","sourceCodeStart":94,"sourceCodeEnd":130,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/web/web-fetch-http/src/provider.ts#L94-L130","documentation":"Error \"web fetch timed out\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/web/web-fetch-http/src/provider.ts:112 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Retry with a longer timeout or check network connectivity to the target URL."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"b150a551b8d465e31e418e1b2eaf5e79bbb7d28e","analyzedAt":"2026-08-24T18:12:29.105Z","schemaVersion":2},"datasetVersion":"2026-08-24T22:17:12.610Z"}