backend: enhance error handling for egress listing
This commit is contained in:
parent
7464ef3c6f
commit
51df863310
@ -251,7 +251,11 @@ export class LiveKitService {
|
|||||||
};
|
};
|
||||||
return await this.egressClient.listEgress(options);
|
return await this.egressClient.listEgress(options);
|
||||||
} catch (error: any) {
|
} 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 [];
|
return [];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user