Orthocorp / orthoverse-avatars

0 stars 0 forks source link

Authentication JWT expired not handled properly #30

Open kf106 opened 1 year ago

kf106 commented 1 year ago

Error building context. Error: Exception in getAuthenticationContext: jwt expired

api | Invalid db.user.upsert() invocation in api | /media/kf106/WD-0011/GIT/Orthocorp/orthoverse-avatars/api/src/services/auth/auth.js:35:17 api | api | 32 }) => { api | 33 const nonce = Math.floor(Math.random() 1000000).toString() api | 34 const address = addressRaw.toLowerCase() api | β†’ 35 await db.user.upsert( api | Unique constraint failed on the fields: (name) api | 21:39:04 🌲 request completed 13ms api | 21:39:04 πŸ› Execution end api | 21:39:04 πŸ› undefined api | 21:39:04 🚨 graphql-server api | Invalid db.user.upsert() invocation in api | /media/kf106/WD-0011/GIT/Orthocorp/orthoverse-avatars/api/src/services/auth/auth.js:35:17 api | api | 32 }) => { api | 33 const nonce = Math.floor(Math.random() 1000000).toString() api | 34 const address = addressRaw.toLowerCase() api | β†’ 35 await db.user.upsert( api | Unique constraint failed on the fields: (name) api | api | 🚨 GraphQLError Info api | api | { api | "path": [ api | "authChallenge" api | ], api | "locations": [ api | { api | "line": 2, api | "column": 3 api | } api | ], api | "extensions": {} api | } api |
api | πŸ₯ž Error Stack api | api | Error: api | Invalid db.user.upsert() invocation in api | /media/kf106/WD-0011/GIT/Orthocorp/orthoverse-avatars/api/src/services/auth/auth.js:35:17 api | api | 32 }) => { api | 33 const nonce = Math.floor(Math.random() * 1000000).toString() api | 34 const address = addressRaw.toLowerCase() api | β†’ 35 await db.user.upsert( api | Unique constraint failed on the fields: (name) api | at RequestHandler.handleRequestError (/media/kf106/WD-0011/GIT/Orthocorp/orthoverse-avatars/node_modules/@prisma/client/runtime/index.js:34869:13) api | at RequestHandler.handleAndLogRequestError (/media/kf106/WD-0011/GIT/Orthocorp/orthoverse-avatars/node_modules/@prisma/client/runtime/index.js:34841:12) api | at RequestHandler.request (/media/kf106/WD-0011/GIT/Orthocorp/orthoverse-avatars/node_modules/@prisma/client/runtime/index.js:34836:12) api | at async PrismaClient._request (/media/kf106/WD-0011/GIT/Orthocorp/orthoverse-avatars/node_modules/@prisma/client/runtime/index.js:35926:16) api | at Object.authChallenge (/media/kf106/WD-0011/GIT/Orthocorp/orthoverse-avatars/api/src/services/auth/auth.js:35:3) api | at async /media/kf106/WD-0011/GIT/Orthocorp/orthoverse-avatars/node_modules/@envelop/core/cjs/orchestrator.js:380:27 api | at async processRequest (/media/kf106/WD-0011/GIT/Orthocorp/orthoverse-avatars/node_modules/@graphql-yoga/common/cjs/processRequest.js:26:20) api | at async YogaServer.getResponse (/media/kf106/WD-0011/GIT/Orthocorp/orthoverse-avatars/node_modules/@graphql-yoga/common/cjs/server.js:318:28) api | at async YogaServer.handleRequest (/media/kf106/WD-0011/GIT/Orthocorp/orthoverse-avatars/node_modules/@graphql-yoga/common/cjs/server.js:74:30) api | at async handlerFn (/media/kf106/WD-0011/GIT/Orthocorp/orthoverse-avatars/node_modules/@redwoodjs/graphql-server/dist/functions/graphql.js:251:24)

kf106 commented 1 year ago

See https://github.com/redwoodjs/redwood/issues/6197