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.

Bug: Stack trace link to URL picking up trailing parenthesis

See original GitHub issue

Environment

SaaS (https://sentry.io/)

Version

No response

Steps to Reproduce

Trigger an exception which includes a URL like:

Loading chunk app_bootstrap_initializeLocale_tsx failed.
(error: https://s1.sentry-cdn.com/_static/dist/sentry/chunks/app_bootstrap_initializeLocale_tsx.cb92d261ee5cdae6468b.js)

Here’s an example.

Expected Result

After removing the ) the URL works:

image

When detecting URLs maybe we can trim special characters from the end?

Actual Result

The URL which is extracted in the stack trace will include the trailing parenthesis:

image image

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
AbhiPrasadcommented, Jul 25, 2022

The raw chrome stacktrace (id’s removed to obfiscate):

ChunkLoadError: Loading chunk app_bootstrap_initializeLocale_tsx failed.
(error: https://s1.sentry-cdn.com/_static/dist/sentry/chunks/app_bootstrap_initializeLocale_tsx.abcdefg.js)
  at (error: (/_static/dist/sentry/chunks/app_bootstrap_initializeLocale_tsx.abcdefg.js))
  at key(webpack/runtime/jsonp chunk loading:27:18)
  at ? (webpack/runtime/ensure chunk:6:25)
  at Array.reduce(<anonymous>)
  at Function._.e(webpack/runtime/ensure chunk:5:56)
  at gsApp(../../getsentry/static/getsentry/gsApp/index.tsx:17:7)
  at ? (../../getsentry/static/getsentry/gsApp/index.tsx:49:1)
  at ? (dist/sentry/sourcemaps/app.abcdefg.js:49:1)
  at ? (dist/sentry/sourcemaps/app.abcdefg.js:49:1)
Read more comments on GitHub >

github_iconTop Results From Across the Web

Links to URLs containing parentheses - Meta Stack Exchange
Sometimes URLs can fail to link correctly because they contain disallowed characters. In these cases encode the characters using the % notation.
Read more >
What does "SyntaxError: Missing parentheses in call to 'print ...
This error message means that you are attempting to use Python 3 to follow an example or run a program that uses the...
Read more >
A Definitive Guide to Handling Errors in JavaScript - Kinsta
A stack trace is the list of method calls a program was in when an event such as an exception or a warning...
Read more >
curl.1 the man page
Using this option, curl will instead return an error on the first transfer that fails, independent of the amount of URLs that are...
Read more >
Safari Technology Preview Release Notes - Apple Developer
Note: Shared Tab Groups and syncing for Tab Groups, Website Settings, and Web Extensions are not enabled in this release. Web Inspector. Fixed...
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