When ever user push to login or logout route its return 500 server error i’m using next.js 14 it was working perfectly fine before idk what happened suddenly.
LogoutHandlerError: Logout handler failed. CAUSE: Discovery requests failing for https://dev-z6gzkszlbnkzjcqv.us.auth0.com,
at eval (webpack-internal:///(rsc)/./node_modules/@auth0/nextjs-auth0/dist/handlers/logout.js:24:19)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async eval (webpack-internal:///(rsc)/./node_modules/@auth0/nextjs-auth0/dist/handlers/auth.js:59:24)
at async /home/southville/WebstormProjects/sentryAds/Ad-sentry-web-app/node_modules/next/dist/compiled/next-server/app-route.runtime.dev.js:6:62609 {
code: 'ERR_LOGOUT_HANDLER_FAILURE',
cause: DiscoveryError: Discovery requests failing for https://dev-z6gzkszlbnkzjcqv.us.auth0.com,
at NodeClient.getClient (webpack-internal:///(rsc)/./node_modules/@auth0/nextjs-auth0/dist/auth0-session/client/node-client.js:48:19)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async NodeClient.endSessionUrl (webpack-internal:///(rsc)/./node_modules/@auth0/nextjs-auth0/dist/auth0-session/client/node-client.js:143:24)
at async eval (webpack-internal:///(rsc)/./node_modules/@auth0/nextjs-auth0/dist/auth0-session/handlers/logout.js:34:21)
at async eval (webpack-internal:///(rsc)/./node_modules/@auth0/nextjs-auth0/dist/handlers/logout.js:21:13)
at async eval (webpack-internal:///(rsc)/./node_modules/@auth0/nextjs-auth0/dist/handlers/auth.js:59:24)
at async /home/southville/WebstormProjects/sentryAds/Ad-sentry-web-app/node_modules/next/dist/compiled/next-server/app-route.runtime.dev.js:6:62609,
status: undefined
}
LoginHandlerError: Login handler failed. CAUSE: Discovery requests failing for https://dev-z6gzkszlbnkzjcqv.us.auth0.com,
at eval (webpack-internal:///(rsc)/./node_modules/@auth0/nextjs-auth0/dist/handlers/login.js:61:19)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async eval (webpack-internal:///(rsc)/./node_modules/@auth0/nextjs-auth0/dist/handlers/auth.js:59:24)
at async /home/southville/WebstormProjects/sentryAds/Ad-sentry-web-app/node_modules/next/dist/compiled/next-server/app-route.runtime.dev.js:6:62609 {
code: 'ERR_LOGIN_HANDLER_FAILURE',
cause: DiscoveryError: Discovery requests failing for https://dev-z6gzkszlbnkzjcqv.us.auth0.com,
at NodeClient.getClient (webpack-internal:///(rsc)/./node_modules/@auth0/nextjs-auth0/dist/auth0-session/client/node-client.js:48:19)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async NodeClient.authorizationUrl (webpack-internal:///(rsc)/./node_modules/@auth0/nextjs-auth0/dist/auth0-session/client/node-client.js:115:24)
at async eval (webpack-internal:///(rsc)/./node_modules/@auth0/nextjs-auth0/dist/auth0-session/handlers/login.js:70:34)
at async eval (webpack-internal:///(rsc)/./node_modules/@auth0/nextjs-auth0/dist/handlers/login.js:58:13)
at async eval (webpack-internal:///(rsc)/./node_modules/@auth0/nextjs-auth0/dist/handlers/auth.js:59:24)
at async /home/southville/WebstormProjects/sentryAds/Ad-sentry-web-app/node_modules/next/dist/compiled/next-server/app-route.runtime.dev.js:6:62609,
status: undefined
}