Skip to content

Problem with attachments API (getAttachments) #5229

Description

@lforst

After upgrading sentry to v7 getting below error. I am using sentry with node express project

 message: 'finalScope.getAttachments is not a function or its return value is not iterable',
code: undefined,
sentry: '888a4d2d434b4e1c9b5dcea80eb99791',
stack: 'TypeError: finalScope.getAttachments is not a function or its return value is not iterable\n' +
' at NodeClient._prepareEvent (/srv/server/node_modules/@sentry/core/cjs/baseclient.js:403:69)\n' +
' at NodeClient._prepareEvent (/srv/server/node_modules/@sentry/node/cjs/client.js:151:18)\n' +
' at NodeClient._processEvent (/srv/server/node_modules/@sentry/core/cjs/baseclient.js:598:17)\n' +
' at NodeClient._captureEvent (/srv/server/node_modules/@sentry/core/cjs/baseclient.js:554:17)\n' +
' at NodeClient.captureEvent (/srv/server/node_modules/@sentry/core/cjs/baseclient.js:147:12)\n' +
' at NodeClient.captureEvent (/srv/server/node_modules/@sentry/node/cjs/client.js:93:18)\n' +
' at Hub._invokeClient (/srv/server/node_modules/winston-sentry-log/node_modules/@sentry/hub/dist/hub.js:384:35)\n' +
' at Hub.captureEvent (/srv/server/node_modules/winston-sentry-log/node_modules/@sentry/hub/dist/hub.js:171:14)\n' +
' at Transaction.finish (/srv/server/node_modules/@sentry/tracing/cjs/transaction.js:142:22)\n' +
' at Immediate.<anonymous> (/srv/server/node_modules/@sentry/node/cjs/handlers.js:51:21)\n' +
' at processImmediate (internal/timers.js:464:21)\n' +
' at process.topLevelDomainCallback (domain.js:152:15)\n' +
' at process.callbackTrampoline (internal/async_hooks.js:128:24)'

Originally posted by @pnutmath in #5004 (comment)

Activity

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions