mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-09-03 04:38:33 +00:00
fix(studio): filter media decode errors from crash telemetry
This commit is contained in:
@@ -22,8 +22,13 @@ function errorProps(value: unknown): {
|
||||
return { error_message: String(value), error_name: null, stack_trace: null };
|
||||
}
|
||||
|
||||
// fallow-ignore-next-line complexity
|
||||
function isCompositionAssetError(msg: string): boolean {
|
||||
return msg.includes("Error fetching") && (msg.includes("404") || msg.includes("Not Found"));
|
||||
if (msg.includes("Error fetching") && (msg.includes("404") || msg.includes("Not Found")))
|
||||
return true;
|
||||
if (msg.includes("unsupported or unrecognizable format")) return true;
|
||||
if (msg.includes("MEDIA_ERR_SRC_NOT_SUPPORTED")) return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
const ERROR_CAP = 50;
|
||||
|
||||
Reference in New Issue
Block a user