deepseek-ai/deepseek-harness · error · WebError

WEB_PROVIDER_UNAVAILABLE

WEB_PROVIDER_UNAVAILABLE

Error message

no usable web provider is registered

What it means

Provider-resolution failure in the web service: no id was configured and no registered provider reported itself available. With zero usable providers, a web request cannot be served; install/configure a provider or supply its credentials.

Solutions

  1. Compose at least one web provider (search or fetch) into cordis.yml with valid configuration and credentials so the web capability has a usable provider.
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at packages/web/web/src/index.ts:187 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/cb6b9c4b44d74c10. Report an issue: GitHub.

Appendix: source

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

}

/** Resolve the selected provider or throw the matching {@link WebError}. */
function resolveProvider<P extends ResolvableProvider>(selection: Selection<P>): P {
  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)