deepseek-ai/deepseek-harness · error · WebError

WEB_PROVIDER_AMBIGUOUS

WEB_PROVIDER_AMBIGUOUS

Error message

multiple usable web providers are registered (${ids}); configure one explicitly

What it means

Error "multiple usable web providers are registered (${ids}); configure one explicitly" thrown in deepseek-ai/deepseek-harness.

Source

Thrown at packages/web/web/src/index.ts:191

  const { configuredId, providers } = selection
  if (configuredId !== undefined) {
    const provider = providers.get(configuredId)
    if (!provider) {
      throw new WebError(`configured web provider "${configuredId}" is not registered`, 'WEB_PROVIDER_CONFIGURED_MISSING')
    }
    if (!provider.available()) {
      throw new WebError(`configured web provider "${configuredId}" is registered but unavailable`, 'WEB_PROVIDER_CONFIGURED_UNAVAILABLE')
    }
    return provider
  }
  const usable = [...providers.values()].filter(provider => provider.available())
  const [single] = usable
  if (single === undefined) {
    throw new WebError('no usable web provider is registered', 'WEB_PROVIDER_UNAVAILABLE')
  }
  if (usable.length > 1) {
    const ids = usable.map(provider => provider.id).join(', ')
    throw new WebError(`multiple usable web providers are registered (${ids}); configure one explicitly`, 'WEB_PROVIDER_AMBIGUOUS')
  }
  return single
}

/** Enforce `maxResults` on a search result: truncate `sources[]` and flag it. */
function capSources(result: WebSearchResult, maxResults: number | undefined): WebSearchResult {
  if (maxResults === undefined || result.sources.length <= maxResults) return result
  return { ...result, sources: result.sources.slice(0, maxResults), truncated: true }
}

export default WebRuntime

View on GitHub (pinned to b150a551b8)

Solutions

  1. Set the web provider explicitly in cordis.yml to one of the listed ids, or remove/disable the extra providers until exactly one is usable.

When it happens

Trigger: Thrown at packages/web/web/src/index.ts:191 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of deepseek-ai/deepseek-harness@b150a551b8 (2026-08-24). Data as JSON: /api/errors/a491c3ac53d4881e. Report an issue: GitHub.