Skip to content

[Bug]: Middleware not working when trying to get well-know configuration #392

Open
@Quentin-Gillet

Description

@Quentin-Gillet

Preflight Checklist

  • I could not find a solution in the documentation, the existing issues or discussions
  • I have joined the ZITADEL chat

Version

latest github commit

Describe the problem caused by this bug

When i tried to request this endpoint: http://localhost:3000/.well-known/openid-configuration.
This error appears: "Error: The edge runtime does not support Node.js 'zlib' module.
Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime"

On an other setup i have made i had the same issue but with the module "http2".
This error can't be bypassed.

To reproduce

Run the server with pnpm run dev and go to http://localhost:3000/.well-known/openid-configuration

Screenshots

Image

Expected behavior

No error and same content as if the request was made directly to zitadel.

Relevant Configuration

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingloginLogin Application

    Type

    No type

    Projects

    Status

    🧐 Investigating

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions