{"record":{"id":"89e5b964582173b4","repo":"deepseek-ai/deepseek-harness","slug":"aborted-89e5b9","errorCode":"ABORTED","errorMessage":"model discovery aborted by caller","messagePattern":"model discovery aborted by caller","errorType":"exception","errorClass":"LlmError","httpStatus":null,"severity":"error","filePath":"packages/llm/llm-pi-ai/src/discovery.ts","lineNumber":255,"sourceCode":"  // lookup — and no diagnostic about a credential it never needed.\n  // A probe carrying no key stays unauthenticated, which is how a route that\n  // relies on the provider's own ambient discovery is meant to be asked.\n  const supplied = request.apiKey ?? await storedApiKey?.()\n  const apiKey = supplied === undefined ? undefined : usableProbeKey(supplied)\n  let response: Response\n  try {\n    response = await fetch(url, {\n      method: 'GET',\n      headers: {\n        accept: 'application/json',\n        ...apiKey === undefined ? {} : { authorization: `Bearer ${apiKey}` },\n        ...attributionHeaders(),\n      },\n      ...request.signal === undefined ? {} : { signal: request.signal },\n    })\n  } catch (error: unknown) {\n    if (request.signal?.aborted) {\n      throw new LlmError('model discovery aborted by caller', 'ABORTED', { cause: error })\n    }\n    throw new LlmError(`could not reach ${url}`, 'DISCOVERY_FAILED', { cause: error })\n  }\n  if (!response.ok) {\n    throw new LlmError(\n      `${url} answered ${response.status}${response.status === 401 || response.status === 403 ? '; check the API key' : ''}`,\n      'DISCOVERY_FAILED',\n    )\n  }\n  let text: string\n  try {\n    text = await readBounded(response, url)\n  } catch (error: unknown) {\n    // Cancellation during the body read rejects with the abort reason, which\n    // may be any value; the caller gets the same coded failure it would have\n    // for a cancellation before the request went out.\n    if (request.signal?.aborted) {\n      throw new LlmError('model discovery aborted by caller', 'ABORTED', { cause: error })","sourceCodeStart":237,"sourceCodeEnd":273,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/llm/llm-pi-ai/src/discovery.ts#L237-L273","documentation":"Error \"model discovery aborted by caller\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/llm/llm-pi-ai/src/discovery.ts:255 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Re-run model discovery without aborting it."],"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"}