From d8770e36556e3a62077e6ad4e7fe6929b2d2f1ed Mon Sep 17 00:00:00 2001 From: Antonio Date: Wed, 5 Aug 2026 11:46:59 +0200 Subject: [PATCH 1/2] fix: better error management --- src/main/lib/ipcEvents.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/main/lib/ipcEvents.ts b/src/main/lib/ipcEvents.ts index 3db2950b..30c60f71 100644 --- a/src/main/lib/ipcEvents.ts +++ b/src/main/lib/ipcEvents.ts @@ -144,12 +144,15 @@ export function registerIpcEvents() { timeout: 3000 }, (res) => { - if (res.statusCode !== 200) { - triggerError(new Error('status error'), request) + const statusCode = res.statusCode ?? 0 + const isSuccess = (statusCode >= 200 && statusCode < 300) || statusCode === 302 + if (!isSuccess) { + triggerError(new Error(`status error: ${statusCode}`), request) + return } NethLinkController.instance.window.emit(IPC_EVENTS.RESPONSE_START_CALL_BY_URL, true) PhoneIslandController.instance.window.show() - Log.debug('START_CALL_BY_URL', url, res.statusCode) + Log.debug('START_CALL_BY_URL', url, statusCode) } ) From 4eb3aba01e900c40471bffc43ca68cda33abd22e Mon Sep 17 00:00:00 2001 From: Edoardo Spadoni Date: Fri, 18 Sep 2026 10:47:22 +0200 Subject: [PATCH 2/2] fix(deps): bump socket.io-parser to 4.2.7 and resync lockfile socket.io-parser 4.2.6 -> 4.2.7 closes the high-severity 'Socket.IO: Zero-attachment Memory Exhaustion' advisory. Transitive via @nethesis/phone-island > socket.io-client. Also resyncs the lockfile root entry with package.json: #217 left it declaring ^1.20.0/^7.88.0/^4.63.3 for axios/react-hook-form/rollup while package.json kept the original ^1.6.7/^7.50.1/^4.12.1 ranges. Resolved versions were unaffected, but the next npm install would have rewritten the file. Co-authored-by: Antonio --- package-lock.json | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/package-lock.json b/package-lock.json index fabde3b4..6be1245e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -40,7 +40,7 @@ "@vitejs/plugin-react": "^4.2.1", "auto-launch": "^5.0.6", "autoprefixer": "^10.4.17", - "axios": "^1.20.0", + "axios": "^1.6.7", "classnames": "^2.5.1", "clsx": "^2.1.0", "crypto-browserify": "^3.12.0", @@ -68,10 +68,10 @@ "rage-edit": "^1.2.0", "react": "^18.2.0", "react-dom": "^18.2.0", - "react-hook-form": "^7.88.0", + "react-hook-form": "^7.50.1", "react-i18next": "^12.1.5", "react-router-dom": "^6.21.3", - "rollup": "^4.63.3", + "rollup": "^4.12.1", "tailwind-merge": "^2.2.1", "tailwind-scrollbar": "^3.1.0", "tailwindcss": "^3.4.1", @@ -12703,9 +12703,9 @@ } }, "node_modules/socket.io-parser": { - "version": "4.2.6", - "resolved": "https://registry.npmjs.org/socket.io-parser/-/socket.io-parser-4.2.6.tgz", - "integrity": "sha512-asJqbVBDsBCJx0pTqw3WfesSY0iRX+2xzWEWzrpcH7L6fLzrhyF8WPI8UaeM4YCuDfpwA/cgsdugMsmtz8EJeg==", + "version": "4.2.7", + "resolved": "https://registry.npmjs.org/socket.io-parser/-/socket.io-parser-4.2.7.tgz", + "integrity": "sha512-IH/iSeO9T6gz1KkFleGDWkG9N3dl4jXVYUtMhIqH10Md0ttMer8nUNWiP1DKuNrybD2xBrixLJdCC9J6ECoYkg==", "dev": true, "license": "MIT", "dependencies": {