Bug: Stack trace link to URL picking up trailing parenthesis
See original GitHub issueEnvironment
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:
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:
Issue Analytics
- State:
- Created a year ago
- Comments:6 (5 by maintainers)
Top 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 >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
related: https://github.com/getsentry/sentry-javascript/issues/5151 https://github.com/getsentry/sentry-javascript/issues/4138 https://github.com/getsentry/sentry-javascript/issues/5498
The raw chrome stacktrace (id’s removed to obfiscate):