deepseek-ai/deepseek-harness · error · WebError

WEB_PROVIDER_CONFIGURED_UNAVAILABLE

WEB_PROVIDER_CONFIGURED_UNAVAILABLE

Error message

configured web provider "${configuredId}" is registered but unavailable

What it means

Provider-resolution failure in the web service: the configured provider id is registered, but its available() check returned false (e.g. missing API key or dependency), so it cannot serve requests despite being selected.

Solutions

  1. Make the configured provider usable: supply its required credentials/configuration and enable it, or point the configuration at a different registered provider.
Defensive patterns

Strategy: validation

When it happens

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

Appendix: source

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

    return provider.fetch(request, signal)
  }
}

interface ResolvableProvider {
  readonly id: string
  available(): boolean
}

/** 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

View on GitHub (pinned to b150a551b8)