Skip to content

Add Troubleshooting Gemini API keys section#271

Merged
roznawsk merged 10 commits into
mainfrom
docs/gemini-api-key-troubleshooting
Jul 1, 2026
Merged

Add Troubleshooting Gemini API keys section#271
roznawsk merged 10 commits into
mainfrom
docs/gemini-api-key-troubleshooting

Conversation

@roznawsk

@roznawsk roznawsk commented Jun 26, 2026

Copy link
Copy Markdown
Member

Document why a bad Gemini API key fails silently: createClient does no network call, so auth/access failures surface only via the Live session onerror/onclose callbacks. Covers common causes (wrong/mistyped key, wrong project, API not enabled, region block, native-audio 1008 'leaked'/1011 model-specific rejection) and how to fix.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new troubleshooting section to the Gemini Live integration guide explaining why invalid/unauthorized Gemini API keys may appear to “fail silently” and where errors actually surface during Live connection attempts.

Changes:

  • Introduces a “Troubleshooting Gemini API keys” section describing asynchronous error surfacing for Live sessions.
  • Adds a TypeScript snippet showing onerror / onclose callback logging for diagnosis.
  • Lists common failure causes (project/API enablement, region restrictions, model-specific close codes) and suggested remediation steps.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread docs/integrations/gemini-live-integration.mdx Outdated
roznawsk added 4 commits June 26, 2026 15:52
Document why a bad Gemini API key fails silently: createClient does no
network call, so auth/access failures surface only via the Live session
onerror/onclose callbacks. Covers common causes (wrong/mistyped key, wrong
project, API not enabled, region block, native-audio 1008 'leaked'/1011
model-specific rejection) and how to fix.
@roznawsk roznawsk force-pushed the docs/gemini-api-key-troubleshooting branch from 12482cf to ef2fd70 Compare June 26, 2026 15:08

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 10 out of 10 changed files in this pull request and generated 1 comment.

Comment thread docs/integrations/gemini-live-integration.mdx Outdated
roznawsk added 2 commits June 29, 2026 11:46
The admonition said the key is only exercised at live.connect() and that
auth failures surface via callbacks rather than thrown, which contradicted
the snippet calling checkCredentials() (a throwing network check) first.
Scope the connect-path claim to the unverified case and introduce
checkCredentials as the explicit fail-fast check.
@roznawsk roznawsk requested a review from czerwiukk June 30, 2026 08:26
@roznawsk roznawsk marked this pull request as ready for review June 30, 2026 08:26
Comment thread docs/integrations/gemini-live-integration.mdx Outdated
Co-authored-by: adrian <33912477+czerwiukk@users.noreply.github.com>
@roznawsk roznawsk merged commit 48294ad into main Jul 1, 2026
1 check passed
@roznawsk roznawsk deleted the docs/gemini-api-key-troubleshooting branch July 1, 2026 13:07
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.

3 participants