typescript icon indicating copy to clipboard operation
typescript copied to clipboard

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

Open Quentin-Gillet opened this issue 1 year ago • 0 comments

Preflight Checklist

  • [x] I could not find a solution in the documentation, the existing issues or discussions
  • [x] 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

Quentin-Gillet avatar Mar 11 '25 22:03 Quentin-Gillet