Open Manmit124 opened 1 year ago
I had the same issue and realised that grafbase wasn't running:
npx grafbase dev
and then you might get some more helpful error messages showing you where any other issues are
TYSM mariawarnes i was struggling to solve this error for two days then after watching your comment i get rid of the error
[next-auth][warn][EXPERIMENTAL_API]
getServerSession
is used in a React Server Component. https://next-auth.js.org/configuration/nextjs#getServerSession} https://next-auth.js.org/warnings#EXPERIMENTAL_API [next-auth][error][JWT_SESSION_ERROR] https://next-auth.js.org/errors#jwt_session_error jwt malformed { message: 'jwt malformed', stack: 'JsonWebTokenError: jwt malformed\n' + ' at module.exports [as verify] (webpack-internal:///(rsc)/./node_modules/jsonwebtoken/verify.js:72:21)\n' + ' at Object.decode (webpack-internal:///(rsc)/./lib/session.ts:32:86)\n' + ' at Object.session (webpack-internal:///(rsc)/./node_modules/next-auth/core/routes/session.js:25:44)\n' + ' at AuthHandler (webpack-internal:///(rsc)/./node_modules/next-auth/core/index.js:161:50)\n' + ' at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n' + ' at async getServerSession (webpack-internal:///(rsc)/./node_modules/next-auth/next/index.js:129:21)\n' + ' at async getCurrentUser (webpack-internal:///(rsc)/./lib/session.ts:73:21)\n' + ' at async Navbar (webpack-internal:///(rsc)/./components/Navbar.tsx:21:21)', name: 'JsonWebTokenError' }Import trace for requested module: ./node_modules/node-fetch/lib/index.js ./node_modules/cross-fetch/dist/node-ponyfill.js ./node_modules/graphql-request/build/esm/index.js ./lib/actions.ts ./lib/session.ts ./components/Navbar.tsx ./app/layout.tsx
Import trace for requested module: ./node_modules/node-fetch/lib/index.js ./node_modules/cross-fetch/dist/node-ponyfill.js ./node_modules/graphql-request/build/esm/index.js ./lib/actions.ts ./lib/session.ts ./components/Navbar.tsx ./app/layout.tsx Error checking if user exists: request to http://127.0.0.1:4000/graphql failed, reason: connect ECONNREFUSED 127.0.0.1:4000