Problem with attachments API (getAttachments)
See original GitHub issueAfter 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 https://github.com/getsentry/sentry-javascript/issues/5004#issuecomment-1149504330_
Issue Analytics
- State:
- Created a year ago
- Comments:17 (7 by maintainers)
Top Results From Across the Web
Solved: Can't Get Attachments through API - PTC Community
I can't get attachments to download through the API. I've tried adding "remote://" for both the "cwd" and "outputFile" options but nothing ...
Read more >GetAttachment - Amazon Connect Participant Service
Provides a pre-signed URL for download of a completed attachment. This is an asynchronous API for use with active contacts.
Read more >API to get attachments with a certain name or other attribute
Hello,. I am trying to use: jira-url/rest/api/2/search?jql=project%20%3D%20abc%20and%20issuefunction%20in%20hasAttachments(txt)&fields= ...
Read more >Need help with the Get and Save attachment api's. I got ...
Trying to understand the attachments rest api. ... The Get attachments by Business Object name and record ID gave me a "Get File"...
Read more >GlideSysAttachment | ServiceNow Developers
The GlideSysAttachment API provides a way to handle attachments. ... var copiedAttachments = attachment.copy('incident', incidentSysID, 'problem', incGR.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’ll take a look into this 😆
One more point here is I am using
winston-sentry-log
package also to capture error level logs in sentry.And setup I followed is exactly same as mentioned in guide: https://docs.sentry.io/platforms/node/guides/express/ along with sentry tracer.
I have downgraded sentry packages and it working fine as earlier.