diegosouzapw/OmniRoute · error

direct_access exchange rejected (401); falling back to publi

Error message

direct_access exchange rejected (401); falling back to public completions endpoint

What it means

Error "direct_access exchange rejected (401); falling back to public completions endpoint" thrown in diegosouzapw/OmniRoute.

Source

Thrown at open-sse/executors/gitlab.ts:586

          errorResponse: null,
        };
      }

      if (!response) {
        return {
          target: {
            mode: "monolith",
            url: endpoints.publicCompletionsUrl,
            headers: buildMonolithHeaders(credentials.accessToken),
          },
          credentials,
          errorResponse: null,
        };
      }

      if (response.status === 401) {
        if (input.log) {
          input.log.warn(
            "GITLAB-DUO",
            "direct_access exchange rejected (401); falling back to public completions endpoint"
          );
        }
        return {
          target: {
            mode: "monolith",
            url: endpoints.publicCompletionsUrl,
            headers: buildMonolithHeaders(credentials.accessToken || null),
          },
          credentials,
          errorResponse: null,
        };
      }

      if (response.status === 403 && !isGitLabDirectAccessDisabled(response.status, bodyText)) {
        return {
          target: null,

View on GitHub (pinned to a179ffed5b)

When it happens

Trigger: Thrown at open-sse/executors/gitlab.ts:586 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/65c3706db0fdc7bf. Report an issue: GitHub.