{"record":{"id":"5fa43c9c4186f3d6","repo":"deepseek-ai/deepseek-harness","slug":"web-aborted","errorCode":"WEB_ABORTED","errorMessage":"web fetch aborted","messagePattern":"web fetch aborted","errorType":"error_code","errorClass":"WebError","httpStatus":null,"severity":"error","filePath":"packages/web/web-fetch-http/src/provider.ts","lineNumber":47,"sourceCode":"  userAgent: string\n}\n\n/** Stable id this provider registers under. */\nexport const LOCAL_FETCH_PROVIDER_ID = 'http'\n\n/** The anonymous public HTTP(S) fetch provider. */\nexport class HttpFetchProvider implements WebFetchProvider {\n  readonly id = LOCAL_FETCH_PROVIDER_ID\n\n  constructor(private readonly limits: HttpFetchLimits) {}\n\n  /** No credentials to check — an anonymous public fetcher is always usable. */\n  available(): boolean {\n    return true\n  }\n\n  async fetch(request: WebFetchRequest, signal?: AbortSignal): Promise<WebFetchResult> {\n    if (signal?.aborted) throw new WebError('web fetch aborted', 'WEB_ABORTED')\n\n    // One signal stops both the request and body read. The deadline's TimeoutReason later\n    // distinguishes this provider's timeout from caller or outer-deadline cancellation.\n    using d = deadline(signal, this.limits.timeoutMs, 'WEB_FETCH_TIMEOUT')\n    return await this.followAndRead(request.url, d.signal)\n  }\n\n  /** Follow same-origin redirects up to the hop cap, then read the final response. */\n  private async followAndRead(initialUrl: string, signal: AbortSignal): Promise<WebFetchResult> {\n    let currentUrl = validateFetchUrl(initialUrl, this.limits.maxUrlLength)\n    let redirectsFollowed = 0\n\n    for (;;) {\n      const response = await this.requestOnce(currentUrl, signal)\n\n      if (isRedirectStatus(response.status)) {\n        // Enforce the redirect budget before resolving or validating the next hop.\n        if (redirectsFollowed >= this.limits.maxRedirects) {","sourceCodeStart":29,"sourceCodeEnd":65,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/web/web-fetch-http/src/provider.ts#L29-L65","documentation":"Error \"web fetch aborted\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/web/web-fetch-http/src/provider.ts:47 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Retry the fetch without aborting, or treat the abort as a cancelled request."],"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"}