"Unable to issue redirect for OAuth 2.0 transaction" error logs

We’re getting a lot of errors in our logs that say “Unable to issue redirect for OAuth 2.0 transaction” for our production app. We can’t repro and are successfully logging in for most of our users (we haven’t gotten a report that there’s an issue, but our sign-up conversion rate has dropped over the past week).

Any recommendations on how to investigate this or what could be the cause/what this error actually means?

We’re using the openid package for node js. In the following manner:


const config: ConfigParams = {
  authRequired: false,
  auth0Logout: true,
  clientID: process.env.AUTH0_CLIENT_ID,
  issuerBaseURL: process.env.AUTH0_ISSUER,
  secret: process.env.SESSION_SECRET,
  routes: {
    // Makes logout & login routes set by us
    login: false,
    logout: false,
    // eslint-disable-next-line @typescript-eslint/ban-ts-comment
    // @ts-ignore (aside, callback false is in docs but isn't supported by ts)
    callback: false,

app.use((req: Request, res, next) => {
    baseURL: dev ? process.env.AUTH0_BASE_URL : `https://${req.hostname}`,
  })(req, res, next);


router.get(RouteAuth.LOGIN, (req: Request, res: Response) => {
    returnTo: dev
      ? `${process.env.AUTH0_BASE_URL}${RouteAuth.LOGIN_COMPLETE}`
      : `https://${req.hostname}${RouteAuth.LOGIN_COMPLETE}`,
    authorizationParams: {
      redirect_uri: dev
        ? `${process.env.AUTH0_BASE_URL}${RouteAuth.CALLBACK}`
        : `https://${req.hostname}${RouteAuth.CALLBACK}`,