Auth failures · critical
Invalid or leaked stream key
Stream fails to connect because the stream key is wrong, revoked, or accidentally exposed.
Last reviewed: 2026-08-06 · Source: OBS-Studio.net editorial diagnostics
Analyze a log
Matched symptom labels
- Stream auth failure
Overview
Stream fails to connect because the stream key is wrong, revoked, or accidentally exposed. This playbook is part of the auth_failures diagnostics family on OBS-Studio.net and focuses on concrete OBS Studio remediation rather than generic PC advice.
When you see symptoms matching Invalid or leaked stream key, open Help → Log Files → Upload Current Log (or analyze a local log) and keep the Stats dock visible while reproducing. Note whether the problem is present in Preview only, Program output, a platform VOD, or a local recording. Those four observation points prevent chasing the wrong subsystem.
Work top-down: confirm OS permissions and device availability, then capture method, then scene complexity, then encoder capacity, then network delivery. Changing bitrate will not repair a black Game Capture hook, and reinstalling OBS will not repair a full disk. Each section below is written so you can apply fixes in order and stop when Stats and a short test recording look healthy.
Related OBS surfaces you will use repeatedly include Settings → Video (canvas, output, FPS, downscale filter), Settings → Output (encoder, rate control, recording format), Settings → Audio (devices and sample rate), source properties for Game/Display/Window Capture, Advanced Audio Properties for sync offsets and tracks, and the Stats dock counters for rendering lag, encoding lag, and network dropped frames.
If a plugin is in the blast radius, launch Safe Mode to prove stock OBS behavior, then reintroduce plugins one at a time. Keep scene collection backups before large rebuilds. Prefer MKV recordings with remux for crash-safe local files while you iterate.
Symptoms
Use this checklist against Invalid or leaked stream key. Matching several items increases confidence you are in the right playbook.
- Could not connect / invalid key errors
- Worked until key reset on the platform
- Key pasted with spaces
Also note what still works: mic versus desktop audio, Display Capture versus Game Capture, local recording versus live ingest, and whether Safe Mode changes the outcome. Those contrasts isolate hooks, permissions, encoders, and network paths quickly.
Fast checks
- Reproduce once with the Stats dock open and write down rendering lag, encoding lag / skipped frames, and network dropped frames.
- Create a 60-second local MKV recording of the failing scene to separate preview-only bugs from real output bugs.
- Toggle to a minimal scene with a Color Source only; if the issue vanishes, scene complexity or a specific source is implicated.
- For capture issues, A/B Game Capture, Window Capture, and Display Capture without changing encoder settings.
- For encode issues, switch temporarily to a hardware encoder or a faster x264 preset and retest the same scene.
- For network issues, lower bitrate 30% on Ethernet with dynamic bitrate enabled and compare dropped-frame counters.
These fast checks for Invalid or leaked stream key usually identify the subsystem in under ten minutes before deeper repairs.
Likely causes
Common and occasional causes for this issue:
- Wrong key
- Key reset on dashboard
- Whitespace in paste
- Using someone else’s ingest with your key
Do not assume a single cause. Multi-GPU laptops often combine affinity mistakes with Game Capture hooks; audio echo often combines Monitor and Output routing with open speakers; disconnects often combine Wi-Fi loss with an overly optimistic bitrate. Treat the list as a prioritized hypothesis set.
- Wrong key (common) — Documented cause for Invalid or leaked stream key: Wrong key
- Key reset on dashboard (occasional) — Documented cause for Invalid or leaked stream key: Key reset on dashboard
- Whitespace in paste (occasional) — Documented cause for Invalid or leaked stream key: Whitespace in paste
- Using someone else’s ingest with your key (rare) — Documented cause for Invalid or leaked stream key: Using someone else’s ingest with your key
Detailed fixes
Apply repairs in order. Retest after each major change so you know which step helped.
- Step 1: Reset the key on the platform if exposed
- Step 2: Paste carefully without spaces
- Step 3: Prefer Connect Account / OAuth where OBS supports it for that service
- Step 4: Never paste keys into public logs or screenshots without redaction
After the primary fixes, remove temporary test changes you no longer need, document the final encoder and capture settings that worked, and keep a known-good scene collection backup. If nothing above moves Stats in the right direction, capture a fresh log during a failure window for pattern matching.
-
Repair: Reset the key on the platform if exposed
Reset the key on the platform if exposed
Retest the original trigger for Invalid or leaked stream key before continuing to the next repair step.
Change one major variable at a time and keep a scene collection backup.
-
Repair: Paste carefully without spaces
Paste carefully without spaces
Retest the original trigger for Invalid or leaked stream key before continuing to the next repair step.
-
Repair: Prefer Connect Account / OAuth where OBS supports it for that service
Prefer Connect Account / OAuth where OBS supports it for that service
Retest the original trigger for Invalid or leaked stream key before continuing to the next repair step.
Verification
- Stats counters that were elevated for this issue trend toward zero during a five-minute stress test.
- A local MKV recording reviewed in a player shows correct video and audio sync for the failing scenario.
- If this was a live issue, a platform preview or VOD confirms the repair beyond OBS preview.
- Safe Mode versus normal mode behave consistently after plugin cleanup (when plugins were involved).
- Reboot once and re-verify; some permission and driver changes only stick after a clean relaunch.
Verification for Invalid or leaked stream key is not complete until you reproduce the original trigger (game launch, alert spam, long session, Wi-Fi idle, etc.) without regression.
- Verify Stats and output for Invalid or leaked stream key
Run a five-minute reproduction with Stats visible. Confirm the counters associated with this issue improved, then review a local MKV and/or platform preview.
Common mistakes
- Raising bitrate to “fix” encoder overload or rendering lag.
- Reinstalling OBS repeatedly without isolating plugins via Safe Mode.
- Running everything as Administrator permanently on Windows without a documented need.
- Chasing preview artifacts when Program/VOD output was already correct (or the reverse).
- Ignoring disk free space and antivirus locks while debugging “corrupt” recordings.
- Pasting stream keys into public screenshots or unredacted logs.
Avoid shotgun changes. Change one variable at a time for Invalid or leaked stream key so the working configuration is reproducible.
Operating-system notes
Stream keys are secrets on every OS. Treat them like passwords.
Regardless of OS, keep GPU drivers current from the vendor, prefer wired networking for live output, standardize audio on 48 kHz when possible, and treat permissions prompts as first-class failures rather than background noise.
Version notes
These guidance notes target current OBS Studio feature surfaces (Stats docks, Safe Mode, MKV remux, Browser Source shutdown-when-not-visible, hardware encoders, and PipeWire capture where applicable). If you are on a significantly older OBS build, update before deep troubleshooting—plugin ABIs and encoder UIs change across major versions.
After updating OBS, reinstall or update third-party plugins to builds that explicitly support your new version. Legacy encoder plugins are a frequent source of duplicate NVENC entries and init crashes.
FAQ
OAuth better than keys?
When available, account linking reduces key mishandling.
I pasted the key in Discord?
Reset it immediately on the platform.