-
Notifications
You must be signed in to change notification settings - Fork 338
Description
i have starts up this application without errors in local . However, when I attempt to log in using Google, the authentication flow fails. here is my error stack :
[auth][error] TypeError: fetch failed
at context.fetch (E:\free\cloudflare-saas-stack\node_modules\next\dist\server\web\sandbox\context.js:292:38)
at fetch (webpack-internal:///(rsc)/./node_modules/next/dist/compiled/react/cjs/react.react-server.development.js:189:16)
at doOriginalFetch (webpack-internal:///(rsc)/./node_modules/next/dist/esm/server/lib/patch-fetch.js:387:24)
at eval (webpack-internal:///(rsc)/./node_modules/next/dist/esm/server/lib/patch-fetch.js:536:24)
at eval (webpack-internal:///(rsc)/./node_modules/next/dist/esm/server/lib/trace/tracer.js:115:36)
at NoopContextManager.with (webpack-internal:///(rsc)/./node_modules/next/dist/compiled/@opentelemetry/api/index.js:2:7062)
at ContextAPI.with (webpack-internal:///(rsc)/./node_modules/next/dist/compiled/@opentelemetry/api/index.js:2:518)
at NoopTracer.startActiveSpan (webpack-internal:///(rsc)/./node_modules/next/dist/compiled/@opentelemetry/api/index.js:2:18108)
at ProxyTracer.startActiveSpan (webpack-internal:///(rsc)/./node_modules/next/dist/compiled/@opentelemetry/api/index.js:2:18869)
at eval (webpack-internal:///(rsc)/./node_modules/next/dist/esm/server/lib/trace/tracer.js:97:103)
at NoopContextManager.with (webpack-internal:///(rsc)/./node_modules/next/dist/compiled/@opentelemetry/api/index.js:2:7062)
at ContextAPI.with (webpack-internal:///(rsc)/./node_modules/next/dist/compiled/@opentelemetry/api/index.js:2:518)
at NextTracerImpl.trace (webpack-internal:///(rsc)/./node_modules/next/dist/esm/server/lib/trace/tracer.js:97:28)
at patched (webpack-internal:///(rsc)/./node_modules/next/dist/esm/server/lib/patch-fetch.js:180:75)
at Module.discoveryRequest (webpack-internal:///(rsc)/./node_modules/oauth4webapi/build/index.js:272:45)
at getAuthorizationUrl (webpack-internal:///(rsc)/./node_modules/@auth/core/lib/actions/signin/authorization-url.js:24:83)
at Module.signIn (webpack-internal:///(rsc)/./node_modules/@auth/core/lib/actions/signin/index.js:16:136)
at AuthInternal (webpack-internal:///(rsc)/./node_modules/@auth/core/lib/index.js:72:77)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Auth (webpack-internal:///(rsc)/./node_modules/@auth/core/index.js:126:34)
at async signIn (webpack-internal:///(rsc)/./node_modules/next-auth/lib/actions.js:51:17)
at async $$ACTION_1 (webpack-internal:///(rsc)/./src/app/page.tsx:323:5)
at async eval (webpack-internal:///(ssr)/./node_modules/next/dist/esm/server/app-render/action-handler.js:388:31)
at async handleAction (webpack-internal:///(ssr)/./node_modules/next/dist/esm/server/app-render/action-handler.js:313:9)
at async renderToHTMLOrFlightImpl (webpack-internal:///(ssr)/./node_modules/next/dist/esm/server/app-render/app-render.js:889:33)
at async doRender (webpack-internal:///(ssr)/./node_modules/next/dist/esm/server/base-server.js:1380:30)
at async cacheEntry.responseCache.get.routeKind (webpack-internal:///(ssr)/./node_modules/next/dist/esm/server/base-server.js:1505:28)
at async eval (webpack-internal:///(ssr)/./node_modules/next/dist/esm/server/response-cache/web.js:51:36)
✓ Compiled /api/[...nextauth] in 374ms (923 modules)
POST / 303 in 10933ms
GET /api/auth/error?error=Configuration 500 in 23ms
Is this issue caused by a configuration problem? i had configured AUTH_GOOGLE_ID AUTH_GOOGLE_SECRET AUTH_SECRET in .dev.vars