diegosouzapw/OmniRoute · error · Error
OAuth finished, but no provider connection was found.
Error message
OAuth finished, but no provider connection was found.
What it means
Literal error thrown after a successful OAuth popup flow when the subsequent connections fetch finds no connection matching the selected provider. Means the OAuth completed upstream but the callback/connection persistence failed or the provider id mismatches stored connections.
Solutions
- Re-run the onboarding OAuth flow; the connection may appear after a delay
- Check server logs for OAuth callback persistence errors
- Verify the provider id matches the connection's provider field
Defensive patterns
Strategy: fallback
When it happens
Trigger: Thrown at src/app/(dashboard)/dashboard/providers/components/onboarding/ProviderOnboardingWizard.tsx:508 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of diegosouzapw/OmniRoute@a179ffed5b (2026-08-25).
Data as JSON: /api/errors/e962e6e94c9d039b.
Report an issue: GitHub.
Appendix: source
Thrown at src/app/(dashboard)/dashboard/providers/components/onboarding/ProviderOnboardingWizard.tsx:508
};
const handleOAuthSuccess = async () => {
if (!selectedProvider) return;
setShowOAuthModal(false);
setSubmitting(true);
setError(null);
try {
setStatus(text("onboardingLoadingOAuthConnection", "Loading OAuth connection…"));
const connections = await fetchOnboardingConnections();
const matchingConnections = connections.filter(
(connection) => connection.provider === selectedProvider.id
);
const connection =
matchingConnections.find((candidate) => !knownOAuthConnectionIds.has(candidate.id)) ||
matchingConnections[0] ||
null;
if (!connection) {
throw new Error(
text(
"onboardingOAuthNoConnectionFound",
"OAuth finished, but no provider connection was found."
)
);
}
setCreatedConnection(connection);
await runConnectionTest(connection);
setStep("result");
} catch (oauthError) {
setError(
oauthError instanceof Error
? oauthError.message
: text("onboardingOAuthFailed", "OAuth onboarding failed")
);
setStep("result");
} finally {
setSubmitting(false);View on GitHub (pinned to a179ffed5b)