Skip to content

Add Troubleshooting Gemini API keys section#271

Draft
roznawsk wants to merge 5 commits into
mainfrom
docs/gemini-api-key-troubleshooting
Draft

Add Troubleshooting Gemini API keys section#271
roznawsk wants to merge 5 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
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.

2 participants