Skip to content

fix(providers): register Firecrawl and Jina Reader API-key validators (#4401) - #4412

Merged
diegosouzapw merged 1 commit into
release/v3.8.32from
fix/4401-webfetch-validators
Jun 20, 2026
Merged

diegosouzapw merged 1 commit into
release/v3.8.32from
fix/4401-webfetch-validators

Conversation

@diegosouzapw

Copy link
Copy Markdown
Owner

Closes #4401

Problem

Firecrawl and Jina Reader were added as webFetch-kind providers in #2645 with their own executors (firecrawl-fetch, jina-reader-fetch), but no API-key validator was registered. The dashboard "Validate" step therefore fell through all three validator lookups and returned "Provider validation not supported", making it impossible to add these accounts through the standard UI flow.

Fix

Register both providers in SEARCH_VALIDATOR_CONFIGS (src/lib/providers/validation.ts), which auto-wires them into SPECIALTY_VALIDATORS. Each probes the same endpoint + Bearer auth its executor already uses:

  • firecrawl → POST https://api.firecrawl.dev/v1/scrape
  • jina-reader → GET https://r.jina.ai/<url>

validateSearchProvider maps 200/<500 → valid, 401/403 → invalid key, >=500 → failure (so a credit-exhausted or rate-limited key still validates).

Validation (TDD)

New tests/unit/provider-validation-webfetch-4401.test.ts — fails on the unfixed code with "Provider validation not supported", passes after the fix (3/3). Existing provider-validation-specialty.test.ts stays green (112/0). typecheck:core clean, lint clean.

@gemini-code-assist

Copy link
Copy Markdown
Contributor

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@diegosouzapw
diegosouzapw changed the base branch from release/v3.8.31 to release/v3.8.32 June 20, 2026 18:30
@diegosouzapw
diegosouzapw force-pushed the fix/4401-webfetch-validators branch from 7eaecdd to 35fd4b2 Compare June 20, 2026 20:01
@diegosouzapw
diegosouzapw merged commit 1a9d29a into release/v3.8.32 Jun 20, 2026
3 checks passed
@diegosouzapw
diegosouzapw deleted the fix/4401-webfetch-validators branch June 21, 2026 12:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant