-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@sentry/ember throws exception when handling rootURLs #2977
Comments
I stumbled upon the same problem today. Is there any ETA for fixing this? |
Came across this issue today as well. |
Ditto as an issue |
Hello, just want to follow-up if there is any resolution to this issue? |
Mentioned in #2977, route recognition needs the url to be correctly formatted. Since there are different location types, using formatURL should get the correct URL out for use in recognition.
* fix(ember): Fix rootURL breaking route recognition Mentioned in #2977, route recognition needs the url to be correctly formatted. Since there are different location types, using formatURL should get the correct URL out for use in recognition. * Update packages/ember/addon/instance-initializers/sentry-performance.ts Co-authored-by: Kamil Ogórek <kamil.ogorek@gmail.com>
I still have the problem with the last fix. Shouldn't the code concat the rootURL? Like:
|
@Gorzas what kind of location do you have? ( |
@k-fish I'm using hash, so it uses hash_location instead of history_location. You can see the difference: https://github.com/emberjs/ember.js/blob/v3.24.0/packages/%40ember/-internals/routing/lib/location/hash_location.ts#L153-L155 |
Thanks @k-fish! Is there a way so I can test the solution? I don't know how to install from an specific commit in a monorepo. |
@Gorzas if you'd like to test it out that'd be great! It's been a while since I've done it from scratch, but using the monorepo should be pretty much identical to testing a regular local package, with an extra step or two. In the monorepo directory:
In your app directory:
If you run into an error when starting the server about mismatching versions, just make sure your applications package.json has the latest version and it matches the monorepo's version (I just pushed the new version, so they should be both |
@k-fish it's working now. Thanks a lot! 👍 |
Package + Version
@sentry/browser
@sentry/node
raven-js
raven-node
(raven for node)@sentry/ember
Version:
Description
I'm using @sentry/ember package, in our Ember application we specify a
rootURL
for our ember application to host on that specific path (e.g.https://www.domain.com/ember-app/
)When we ran the application an error throws from
sentry-performance
from this line:But the url it was handling is
/
. If I'm not mistaken, when we pass a url torouterService.recognize
we have to prefix with the rootURL.The text was updated successfully, but these errors were encountered: