Skip to content

Cannot use 'in' operator to search for 'id' in 1 #2275

Description

@pxr64

Hello,

I upgraded to version 5.7.0 for the sentry node module and I get the following error

Cannot use 'in' operator to search for 'id' in 1
at /Users/bogdanbrinzoiu/Work/globaya/globaya-backend/node_modules/@sentry/node/src/handlers.ts:157:24
    at Array.forEach (<anonymous>)
    at extractUserData (/Users/bogdanbrinzoiu/Work/globaya/globaya-backend/node_modules/@sentry/node/src/handlers.ts:156:14)
    at Object.parseRequest (/Users/bogdanbrinzoiu/Work/globaya/globaya-backend/node_modules/@sentry/node/src/handlers.ts:227:10)

Activity

  1. zifeo commented on Mar 23, 2020

    @zifeo

    Had a related issue when using express integration: req.user was set to a string while Sentry.Handlers.requestHandler() expects an object there by default.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions