-
Notifications
You must be signed in to change notification settings - Fork 138
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
AnalyticsBrowser - amplitude-plugins/sessionId - Unexpected token '.' #734
Comments
Thanks. Looks related to segmentio/action-destinations#943 |
Ahh, nice. Yeah seems likely! I look forward to updating and testing when the PR is merged. |
Hey all 👋 I just wanted to confirm that we are still seeing this error. Here are the details for the latest reported error:
|
@Jackman3005 Sorry -- the team responsible for that repo removed the issue queue, and while I've reached out, there's been a lot of churn. Two of the main people on that thread are on other projects/away. I would create a formal support ticket and link to that GitHub issue. Basically, the issue is that action destinations are not transpiled for support for older browsers -- link to the action destinations issue first (not this one). If you're enterprising: there is a hot off the press "workaround" / feature on the latest ajs assuming you're already installing analytics via npm: https://github.com/segmentio/segment-docs/pull/5315/files If you install: and pass it (see doc link), you can transpile it to es5 using your own build system (e.g webpack + babel) |
Hey @silesky thanks for the reply and insight. We are not in an enterprise environment and are hoping to avoid the ownership of the solution you suggested, but I do appreciate you bringing it up and potentially others may benefit from it. I have created a Segment support ticket that should hopefully kick start things a bit and get a resolution to this soon. Cheers! |
The Issue
In our production environment Sentry is picking up an error when a user tries to fire an analytics event. (Out of the 10 Sentry events I analyzed all but one had the error occur right after the second analytics event is fired, ONE of them happened without the second event occurring at all)
Stack Trace
Here's the Raw Stack Trace
Sentry provides the following "pretty" stack trace. As noted in the stack trace above, the offending error occurs at position 60:23. Line 60 is the first line with the
if
statement, character 23 is the.
between the first appearance ofevent.integrations
in that line.More Context
It does not appear to be happening all the time, but it comes up regularly in our Sentry logs.
From what I can tell the order of events on our side is:
1 - User opens app -
Start App
analytics event is fired (no apparent issue with this)2 - Segment GET request to
https://cdn.segment.com/v1/projects/{our-project-id}/settings
completes3 - We fire an analytics event
Navigate to Screen
to record the initial screen they start on4 - ???
5 - Error happens
I don't know for sure if the order is different than when it "works" but the error message in the stack does seem a bit strange.
Has anyone else run into this yet?
Thanks in advance,
Jack (& The Questmate Team)
The text was updated successfully, but these errors were encountered: