Skip to content
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

Issue: SyntaxError: Unexpected token 'G' when accessing Hotjar route #30

Open
kurybr opened this issue Jun 18, 2024 · 0 comments
Open

Comments

@kurybr
Copy link

kurybr commented Jun 18, 2024

Description

the route https://content.hotjar.io/?site_id=xxxxxxxx&gzip=1, I am encountering a SyntaxError indicating that the token 'G' is unexpected. This error occurs for only one specific user, and I am using the latest version of the library.

Error

SyntaxError: Unexpected token 'G', "GIF89a��"... is not valid JSON

Request Response

"GIF89a������!���,����D;"

The error occurs in the following part of the code, located in the file /modules.d7e8b7276297041c77dc.js:

us<400?r.isFunction(e.success)&&e.success(t.responseText&&JSON.parse(t.responseText),t):r.isFunction(e.error)&&e.error(t)},t.onerror=functio

Additional Notes

  • This problem occurs only for one specific user.
  • I suspect this might be related to some screen recording block that the user has enabled. Has there been similar cases before?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant