Skip to content

fix(providers): prevent ReferenceError: validationPsd is not defined for keyless providers - #13064

Closed
Bluscream wants to merge 1 commit into
cheaper-inference:release/v3.8.51from
Bluscream:fix/searxng-validationpsd-reference-error
Closed

Bluscream wants to merge 1 commit into
cheaper-inference:release/v3.8.51from
Bluscream:fix/searxng-validationpsd-reference-error

Conversation

@Bluscream

Copy link
Copy Markdown

Fixes #13063

Summary

For keyless providers (such as searxng-search), formData.apiKey is empty. validationPsd was previously scoped inside the if (!isOAuth && formData.apiKey) block, but referenced later in the scope when assigning updates.providerSpecificData.

Moving let validationPsd = validatedProviderSpecificData; out of the if (!isOAuth && formData.apiKey) block ensures validationPsd is always in scope when saving keyless provider connections.

@ekinnee

ekinnee commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

@Bluscream target release/v3.8.51 please.

@Bluscream
Bluscream force-pushed the fix/searxng-validationpsd-reference-error branch from d93042c to b731f07 Compare September 9, 2026 16:42
@Bluscream
Bluscream changed the base branch from main to release/v3.8.51 September 9, 2026 16:42
@Bluscream

Copy link
Copy Markdown
Author

@ekinnee Rebased onto release/v3.8.51 and changed the PR base branch accordingly. Thanks!

@diegosouzapw

Copy link
Copy Markdown
Collaborator

Thanks for the fix and for rebasing onto release/v3.8.51! I checked the current tip and
let validationPsd = validatedProviderSpecificData; is already present at that exact spot
(it traces back to #8949, merged before your branch point) — so this PR's one-line change is
already on the tip and doesn't change behavior. Could you confirm whether the original
ReferenceError from #13063 still reproduces on current release/v3.8.51? If it doesn't, I'll
close this as already fixed; if it does, there's likely a different code path causing it and
I'd like to see the exact repro steps.

Triage note: this is the review recommendation — the close itself happens only after the maintainer's per-PR sign-off (and, where a superseding PR is named, after it has landed). Nothing is being closed by this comment.

@Bluscream Bluscream closed this Sep 15, 2026
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.

bug: ReferenceError: validationPsd is not defined when saving keyless provider connections

3 participants