backend: enhance error handling for egress listing

This commit is contained in:
juancarmore 2025-07-17 19:22:44 +02:00
parent 7464ef3c6f
commit 51df863310

View File

@ -251,7 +251,11 @@ export class LiveKitService {
};
return await this.egressClient.listEgress(options);
} catch (error: any) {
if (error.message.includes('404')) {
if (
error.code === 'not_found' ||
error.status === 404 ||
(error.message && error.message.includes('egress does not exist'))
) {
return [];
}