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

Error "OAuth finished, but no provider connection was found." thrown in diegosouzapw/OmniRoute.

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)

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.