From ab4ba76433ac623abaa17c0e5dd024e95b9fef3f Mon Sep 17 00:00:00 2001 From: KernelDeimos Date: Sun, 1 Dec 2024 19:41:08 -0500 Subject: [PATCH] fix: ignore two calls with undefined origin --- src/puter-js/src/services/Filesystem.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/puter-js/src/services/Filesystem.js b/src/puter-js/src/services/Filesystem.js index f3ffbf32..699dc9ab 100644 --- a/src/puter-js/src/services/Filesystem.js +++ b/src/puter-js/src/services/Filesystem.js @@ -71,6 +71,11 @@ export class FilesystemService extends putility.concepts.Service { const svc_apiAccess = this._.context.services.get('api-access'); const api_info = svc_apiAccess.get_api_info(); + if ( api_info.api_origin === undefined ) { + // This will get called again later with updated information + return; + } + this.socket = io(api_info.api_origin, { auth: { auth_token: api_info.auth_token } });