I see the above reported under Event Processing Errors in Sentry UI. We are using @sentry/node@8.13.0 in an express app. The Discarded invalid value is displayed as:
Name
request.headers.22.1
Value: { session: { ... } }
Reason: expected a primitive value
Example snippets of how we call the Sentry methods in our code:
Sentry.init(...),Sentry.captureException(<an instance of Error>),Sentry.withScope((scope) => { scope.setTag("kind", "<Some string>"); scope.setTag("operationName", "<Some string>"); scope.setExtra("query", "<Some string>"); scope.addBreadcrumb({ category: "query-path", message: err.path.join(" > "), level: "debug" }); })
How can I debug the root cause of this?