diegosouzapw/OmniRoute · error · WebSearchExecutionError
No credentials configured for search provider
Error message
No credentials configured for search provider: ${providerConfig.id}. Add an API key for "${providerConfig.id}" in the dashboard. What it means
Credential resolution failure in executeWebSearch(): an explicit provider was requested, but resolveSearchCredentials() returned nothing for it and the provider is not an authType 'none' provider with a provider_options.baseUrl override. The provider is registered but not configured with an API key.
Solutions
- Add an API key for the named provider in the dashboard.
- For authType 'none' providers, pass a non-empty provider_options.baseUrl (or set the base URL in the dashboard) to satisfy configuration.
- Point the request at a different, already-configured provider or omit 'provider' for auto-selection.
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at src/lib/search/executeWebSearch.ts:178 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of diegosouzapw/OmniRoute@a179ffed5b (2026-08-25).
Data as JSON: /api/errors/9fb3278ef3137e05.
Report an issue: GitHub.
Appendix: source
Thrown at src/lib/search/executeWebSearch.ts:178
let credentials: Record<string, any> | null = null;
let alternateProviderId: string | undefined;
let alternateCredentials: Record<string, any> | null = null;
if (input.provider) {
credentials = await resolveSearchCredentials(providerConfig.id);
if (
!credentials &&
providerConfig.authType === "none" &&
typeof input.provider_options?.baseUrl === "string" &&
input.provider_options.baseUrl.trim().length > 0
) {
credentials = {
providerSpecificData: { baseUrl: input.provider_options.baseUrl.trim() },
};
}
if (!credentials) {
throw new WebSearchExecutionError(
providerConfig.authType === "none"
? `Search provider ${providerConfig.id} is not configured. Set its base URL in the dashboard or pass provider_options.baseUrl.`
: `No credentials configured for search provider: ${providerConfig.id}. Add an API key for "${providerConfig.id}" in the dashboard.`,
400
);
}
} else {
credentials = await resolveSearchCredentials(providerConfig.id);
if (!credentials) {
const fallbackProviders = Object.values(SEARCH_PROVIDERS)
.filter((provider) => provider.fallbackOnly && supportsSearchType(provider, searchType))
.sort((a, b) => a.costPerQuery - b.costPerQuery);
for (const fallbackProvider of fallbackProviders) {
providerConfig = fallbackProvider;
if (fallbackProvider.id === "duckduckgo-free") {
credentials = {};View on GitHub (pinned to a179ffed5b)