question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Problem with attachments API (getAttachments)

See original GitHub issue

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 https://github.com/getsentry/sentry-javascript/issues/5004#issuecomment-1149504330_

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:17 (7 by maintainers)

github_iconTop GitHub Comments

3reactions
timfishcommented, Jun 24, 2022

make sure nothing fishy is going on

I’ll take a look into this 😆

2reactions
pnutmathcommented, Jun 8, 2022

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.

    "@sentry/node": "^6.19.7",
    "@sentry/tracing": "^6.19.7",
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found