You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like some feedback and thoughts on these errors and whether I should ignore them or if anyone knows if there is something I can do to resolve them.
Description
In our app we setup global javascript error handlers for the browser so we can logs errors to slack so we can see and fix them.
We have noticed a lot of errors due to platforms like facebook and tiktok pre-building/caching links to our site for improved user experience. The problem is they try run off some pre-cached version and if a svelte build has happened it changes the file hashes and so the JS files they are referring to do not exist anymore or have changed. We see these errors a lot every day.
The way we catch and log errors:
window.onerror=function(){// logs details to slack}window.onunhandledrejection=function(){// logs details to slack}
The two errors we see mostly:
onunhandledrejection: Failed to fetch file
onerror: Script error
Error 1 Log: Failed to fetch file
The file being referred to here "https://www.utickets.co.za/_app/immutable/chunks/entry.CNIDYaja.js" does exist. I do not know why vercel/speed-insights is being mentioned, maybe it no longer exists in this chunk at that line or this code is trying to dynamically fetch vercel speed insights and is failing. The referrer will almost always be facebook or tiktok.
{
"handler": "onunhandledrejection",
"referrer": "https://l.facebook.com/",
"message": "Failed to fetch",
"url": "https://www.utickets.co.za/",
"stack": "TypeError: Failed to fetch\nat window.fetch (https://www.utickets.co.za/_app/immutable/chunks/entry.CNIDYaja.js:1:1586)\nat em (https://www.utickets.co.za/_vercel/speed-insights/script.js:1:10528)\nat c (https://www.utickets.co.za/_vercel/speed-insights/script.js:1:11518)\nat https://www.utickets.co.za/_vercel/speed-insights/script.js:1:12192\nat n (https://www.utickets.co.za/_vercel/speed-insights/script.js:1:4101)\nat https://www.utickets.co.za/_vercel/speed-insights/script.js:1:2229\nat https://www.utickets.co.za/_vercel/speed-insights/script.js:1:4479\nat t (https://www.utickets.co.za/_vercel/speed-insights/script.js:1:2430)","status": 500,
}
Error 2 Log: Script Error
This gives no insights as to why I am getting a script error but i get these quite frequently, myself or my team are never able to replicate these errors. They also seem to only happen from referrer sites.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Question
I would like some feedback and thoughts on these errors and whether I should ignore them or if anyone knows if there is something I can do to resolve them.
Description
In our app we setup global javascript error handlers for the browser so we can logs errors to slack so we can see and fix them.
We have noticed a lot of errors due to platforms like facebook and tiktok pre-building/caching links to our site for improved user experience. The problem is they try run off some pre-cached version and if a svelte build has happened it changes the file hashes and so the JS files they are referring to do not exist anymore or have changed. We see these errors a lot every day.
The way we catch and log errors:
The two errors we see mostly:
Error 1 Log: Failed to fetch file
The file being referred to here "https://www.utickets.co.za/_app/immutable/chunks/entry.CNIDYaja.js" does exist. I do not know why vercel/speed-insights is being mentioned, maybe it no longer exists in this chunk at that line or this code is trying to dynamically fetch vercel speed insights and is failing. The referrer will almost always be facebook or tiktok.
Error 2 Log: Script Error
This gives no insights as to why I am getting a script error but i get these quite frequently, myself or my team are never able to replicate these errors. They also seem to only happen from referrer sites.
Beta Was this translation helpful? Give feedback.
All reactions