We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 406110f commit 2dbc292Copy full SHA for 2dbc292
1 file changed
packages/workshop-app/app/utils/monitoring.client.ts
@@ -20,6 +20,15 @@ export function init() {
20
"Failed to execute 'requestPictureInPicture' on 'HTMLVideoElement'",
21
],
22
beforeSend(event) {
23
+ // Very common when learners shut down the local server and the browser keeps trying to fetch
24
+ const failedToFetch =
25
+ event.exception?.values?.some(
26
+ (v) =>
27
+ typeof v.value === 'string' && /Failed to fetch/i.test(v.value),
28
+ ) ?? false
29
+
30
+ if (failedToFetch && !ENV.EPICSHOP_DEPLOYED) return null
31
32
if (
33
event.exception?.values?.some((value) =>
34
value.stacktrace?.frames?.some(
0 commit comments