Commit 4da973f4 authored by Vladimir Bashkirtsev's avatar Vladimir Bashkirtsev

Task should not fail if device is offline

parent 5cbbef52
......@@ -6,6 +6,7 @@ all: acs-cwmp-service acs-fs-service acs-nbi-service acs-ui-service genieacs-con
tar xf genieacs-1.2.5.tar.gz
patch -Np1 -d genieacs-1.2.5 < genieacs-1.2.5-ping_fix.patch
patch -Np1 -d genieacs-1.2.5 < genieacs-1.2.5-genieacs-1.2.5-handle_unreachable_URL.patch
patch -Np1 -d genieacs-1.2.5 < genieacs-1.2.5-handle_empty_connection_URL.patch
cd genieacs-1.2.5 && npm install
cd genieacs-1.2.5 && NODE_OPTIONS="--max-old-space-size=3072" npm run build
......
diff -uNr genieacs-1.2.5/lib/connection-request.ts genieacs-1.2.5-handle_unreachable_URL/lib/connection-request.ts
--- genieacs-1.2.5/lib/connection-request.ts 2021-03-13 10:06:19.000000000 +1030
+++ genieacs-1.2.5-handle_unreachable_URL/lib/connection-request.ts 2025-04-15 10:22:06.511149592 +0930
@@ -157,7 +157,7 @@
}
if (err["code"] === "ECONNRESET" || err["code"] === "ECONNREFUSED")
- return "Device is offline";
+ return "";
return `Connection request error: ${err.message}`;
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment