metamcp: Auth middleware error:

I was able to deploy metamcp to k8s but whenever I try and register myself I get this error. I tried adding the external url and so as well the svc url for the following env var BETTER_AUTH_URL and FRONTEND_URL.

Auth middleware error: Error: fetch failed
    at context.fetch (/app/node_modules/.pnpm/next@15.3.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/web/sandbox/context.js:322:60)
    at tC (/app/apps/frontend/.next/server/middleware.js:13:44541)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async tI (/app/apps/frontend/.next/server/middleware.js:13:47606)
    at async handler (/app/apps/frontend/.next/server/middleware.js:13:48605)
    at async /app/apps/frontend/.next/server/middleware.js:13:37403
    at async ti (/app/apps/frontend/.next/server/middleware.js:13:33929)
    at async /app/node_modules/.pnpm/next@15.3.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/web/sandbox/sandbox.js:108:26
    at async runWithTaggedErrors (/app/node_modules/.pnpm/next@15.3.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/web/sandbox/sandbox.js:105:9)
    at async NextNodeServer.runMiddleware (/app/node_modules/.pnpm/next@15.3.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/server/next-server.js:1164:22) {
}

Is there any extra config missing on the example.env?

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Reactions: 1
  • Comments: 20 (14 by maintainers)

Most upvoted comments

Can we have oidc implemented? That would be sick