From ac92f92b65943d5f54837e065dc025957c302fa2 Mon Sep 17 00:00:00 2001 From: Cristina Poncela Cubeiro <140309543+cristinaponcela@users.noreply.github.com> Date: Thu, 18 Jun 2026 16:15:03 +0200 Subject: [PATCH] fix: not found errors --- packages/orchestrator/src/radius.ts | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/packages/orchestrator/src/radius.ts b/packages/orchestrator/src/radius.ts index cb503fab..aacd7130 100644 --- a/packages/orchestrator/src/radius.ts +++ b/packages/orchestrator/src/radius.ts @@ -183,7 +183,13 @@ export class RadiusPresence { if (!this.machine || !isRadiusEnabled()) { return; } - await maybePost(`machines/${this.machine.id}/disconnect`, {}); + try { + await maybePost(`machines/${this.machine.id}/disconnect`, {}); + } catch (error) { + if (!isNotFoundError(error)) { + throw error; + } + } } async registerPi(instance: InstanceRecord): Promise { @@ -220,7 +226,13 @@ export class RadiusPresence { if (!isRadiusEnabled() || !instance.radiusPiId) { return; } - await maybePost(`pis/${instance.radiusPiId}/disconnect`, {}); + try { + await maybePost(`pis/${instance.radiusPiId}/disconnect`, {}); + } catch (error) { + if (!isNotFoundError(error)) { + throw error; + } + } } private async registerMachine(label?: string): Promise {