]> git.basschouten.com Git - openhab-addons.git/commitdiff
[ipcamera] Fix Hikvision cameras stay offline when a 401 reply is given with no www...
authorStefan Triller <t2000@users.noreply.github.com>
Sun, 17 Dec 2023 05:58:34 +0000 (06:58 +0100)
committerGitHub <noreply@github.com>
Sun, 17 Dec 2023 05:58:34 +0000 (06:58 +0100)
Signed-off-by: Stefan Triller <github@stefantriller.de>
bundles/org.openhab.binding.ipcamera/src/main/java/org/openhab/binding/ipcamera/internal/MyNettyAuthHandler.java

index 096551c69a643f54052efab0a2049caf0175bccb..8eb729bc70827afef16bdce4b0467b06a6fab6e1 100644 (file)
@@ -160,8 +160,8 @@ public class MyNettyAuthHandler extends ChannelDuplexHandler {
                     if (!authenticate.isEmpty()) {
                         processAuth(authenticate, httpMethod, httpUrl, true);
                     } else {
-                        ipCameraHandler.cameraConfigError(
-                                "Camera gave no WWW-Authenticate: Your login details must be wrong.");
+                        ipCameraHandler.cameraCommunicationError(
+                                "Camera gave no WWW-Authenticate: Your login details might be wrong. Trying to reconnect");
                     }
                 }
             } else if (response.status().code() != 200) {