Skip to content

Explain the YouTube API key and refuse OAuth values in its field - #1608

Merged
helpcodeai merged 2 commits into
mainfrom
fix/youtube-key-help
Nov 9, 2026
Merged

helpcodeai merged 2 commits into
mainfrom
fix/youtube-key-help

Conversation

@helpcodeai

Copy link
Copy Markdown
Contributor

Summary

7 of the 8 YouTube Data setups in the first week of November stopped at Google's "API key not valid". The field had no help text or format check. The usual mix-up on the Credentials page is pasting the OAuth client ID or client secret instead of the API key.

Changes

  • youtube-data.json: envVarMeta for YOUTUBE_API_KEY with a label, help (where to create it, "starts with AIza, 39 characters", not the OAuth client ID / secret), a link to the Credentials page, and a pattern that refuses an OAuth client ID, a client secret (GOCSPX-), an access token (ya29.) and values with spaces. The pattern does not require the AIza prefix, so a key in a future Google format is not blocked.
  • The 400 hint says what a key looks like.
  • Static spec for the pattern.

Same in Cloud and self-hosted.

Type

  • Bug fix

Testing

  • Added/updated unit tests
node scripts/regenerate-catalog.mjs          # 731 adapters
node scripts/validate-adapters.mjs --warn    # no new warnings
cd packages/backend && npx jest --maxWorkers=4 src/adapters   # 722 suites passed, 1 skipped

Checklist

  • My code follows the existing code style
  • I have tested my changes locally
  • All existing tests pass
  • This PR has a descriptive title

@helpcodeai
helpcodeai requested a review from D3nisty as a code owner November 9, 2026 13:36
@helpcodeai
helpcodeai enabled auto-merge (squash) November 9, 2026 13:36
@helpcodeai
helpcodeai merged commit 13648c6 into main Nov 9, 2026
16 checks passed
@helpcodeai
helpcodeai deleted the fix/youtube-key-help branch November 9, 2026 14:13
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 9, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant