sentry errors
Hello these two sentry errors are repetitively reported;
1) ArgumentValidationError: Value does not match validator. Path: .refreshToken Value: null Validator: v.string()
2) Unexpected token 'A', "A server e"... is not valid JSON
Both are related to convex auth
7 Replies
found this on convex logs as well
Do you also have logs from Next.js? It would help to have the full error message that the Next.js server is returning for the second case.
For the first issue update @convex-dev/auth to latest. I'm not sure why it would happen, but I hopefully captured the error (should be logged on the Next.js server).
this is what I found in vercel logs for the server error
Error: [Request ID: d8c3063dfae98371] Server Error
at (node_modules/.pnpm/convex@1.14.1_react-dom@18.3.1_react@18.3.1react@18.3.1/node_modules/convex/dist/esm/browser/http_client.js:323:0)
at (node_modules/.pnpm/@convex-dev+auth@0.0.57_convex@1.14.1_react-dom@18.3.1_react@18.3.1react@18.3.1next@14.2._iqy6brgeee4fbt5oz57gluz3we/node_modules/@convex-dev/auth/dist/nextjs/server/proxy.js:28:0)
at (node_modules/.pnpm/@convex-dev+auth@0.0.57_convex@1.14.1_react-dom@18.3.1_react@18.3.1react@18.3.1next@14.2._iqy6brgeee4fbt5oz57gluz3we/node_modules/@convex-dev/auth/dist/nextjs/server/index.js:49:0)
at (nodemodules/.pnpm/@sentry+nextjs@8.26.0@opentelemetry+api@1.9.0@opentelemetry+core@1.25.1@opentelemetry+api@_ksey7zpx5z6xea4jmy5iongufm/node_modules/@sentry/nextjs/build/esm/common/utils/edgeWrapperUtils.js:49:0)
at (nodemodules/.pnpm/next@14.2.5@babel+core@7.25.2_@opentelemetry+api@1.9.0_react-dom@18.3.1_react@18.3.1react@18.3.1/node_modules/next/dist/esm/server/web/adapter.js:158:0)
[POST] [middleware: "middleware"] /api/auth reason=EDGE_FUNCTION_INVOCATION_FAILED, status=500, user_error=true
Ok, and what do you find in Convex logs for the request ID
d8c3063dfae98371
?
https://docs.convex.dev/dashboard/deployments/logs#filter-logs
https://docs.convex.dev/production/integrations/log-streams/#function-fieldsLog Streams | Convex Developer Hub
Configure logging integrations for your Convex deployment
Logs | Convex Developer Hub
Logs Dashboard Page
Great, that's the same error. Try upgrading to latest.