Skip to content

[Stack Traces] Filename prepended with "async " causes issues #7128

Closed
@souredoutlook

Description

@souredoutlook

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using? If you use the CDN bundles, please specify the exact bundle (e.g. bundle.tracing.min.js) in your SDK setup.

@sentry/browser

SDK Version

latest

Framework Version

browser frameworks

Link to Sentry event

No response

SDK Setup

n/a

Steps to Reproduce

Please see attached Zendesk tickets for more details

https://sentry.zendesk.com/agent/tickets/79456
https://sentry.zendesk.com/agent/tickets/78491

  1. SDK captures an error
  2. Stack trace frame is parsed, filename includes "async ..."
  3. When Sentry attempts to resolve sourcemaps or fetch source context this fails because of the prepended string "async "

In our Node.js SDK we already handle this:

const FULL_MATCH = /at (?:async )?(?:(.+?)\s+\()?(?:(.+):(\d+):(\d+)?|([^)]+))\)?/;

Expected Result

We parse the line of the stack trace and make it Sentry compatible

Actual Result

See the following processing error:

source code was not found (the given url includes "async https://....")


cc @AbhiPrasad

Metadata

Metadata

Assignees

Labels

Package: browserIssues related to the Sentry Browser SDK

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions