-
Notifications
You must be signed in to change notification settings - Fork 44
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
Loading chunk 692 failed on Firefox 109.0 and Safari 16.2 #392
Comments
Morning @ilario-pierbattista and thanks for reporting this issue. With version 1220, the browser agent began using lazy chunked loading making the initial code that has to be injected into the HTML smaller. We have noticed that certain browsers with more restrictive privacy settings like Firefox with Strict privacy control enabled, DuckDuckGo browser, and ad blockers will block the agent from loading the additional JS resources it needs at runtime. This results in the error you are describing. We are planning to make that message in the browser console more user friendly. We are also looking for feedback on other options for addressing this concern. Please feel free to share your opinions and feedback, we take all feedback very seriously and ensure it feeds into product development at New Relic. |
Hello @patrickhousley, thank you for your reply. Maybe the lazy chunked loading could be disabled by configuring the agent? |
Thanks for the feedback @ilario-pierbattista , that is one of the options we are considering. Below is the size difference in the code that must be injected into the HTML. With Code Splitting
Without Code Splitting
|
Confirmed for the browser versions mentioned. Also seen on Safari 16.0. As a "bonus", all e2e tests written in Cypress also started to fail across all the different sub-projects. Interestingly enough, we had |
How are you injecting the agent? The agent is usually contained in the HTML file as an inline script. It will then lazy load chunks from our CDN With 1223, we resolved an issue where some sites were redefining the global Please keep in mind that, if the agent lazy chunks are currently being blocked by privacy settings and/or ad blockers, changing to a single agent file (removing the use of lazy loading) could still result in data not being captured due to those network requests being blocked as well. As an interim solution, we are making a change in 1224 (eta tbd) to capture the chunk load errors and provide a better message to the console. For the long term, we are actively exploring options with regards to the above mentioned privacy settings and ad blocker issue. |
We found where we had internal uncaught Promises that was causing this problem; culprit was introduced in v1223 restructuring. Thank you for the report! Edit: To be clear, we're just working to silence this error as there's nothing we can practically do at this time to prevent content blockers from nullifying the agent. |
Work has been completed on this issue. |
Your cert has expired - I'm trying to determine if this issue is similar to one I'm experiencing when trying to integrate 1.257.0 into my react app but chrome refuses to let me view the page |
Description
Starting from 2023-01-30 we started to get the following load error from users with Firefox 109.0 and Safari 16.2 browsers (both desktop and mobile versions).
Steps to Reproduce
I didn't manage to reproduce the error. I've tried to use Firefox 109 (on Ubuntu), but it seems to work.
On the other hand, I see a lot of incoming traffic from Firefox 109 browsers that doesn't report a load failure.
It seems to fail randomically.
Expected Behavior
The script load should never fail.
Relevant Logs / Console output
Your Environment
The text was updated successfully, but these errors were encountered: