HTTP Binding and digest authentication

I’ve been using this binding instead of the HTTP binding because of national characters support. I’m now using OH 3.3.0.M5 and the binding works ok with my http/https devices that require basic authentication.

But now I have a device that requires digest authentication and this binding can only make the first call. I’ve tried several consecutive curl’s with digest authentication (success), so this does not seem a device limitation, but rather a binding limitation. To make a channel refresh I have to restart OH (disable/enable the thing is not enough).

What data is necessary to investigate this problem ?

I’m now using the HTTP Binding (OH 3.3.0.M6), here is the log

2022-06-07 13:32:30.920 [WARN ] [ttp.internal.http.RefreshingUrlCache] - Could not find authentication result for 'http://192.168.127.10/ISAPI/VideoIntercom/callStatus?format=json', failing here
2022-06-07 13:33:00.917 [WARN ] [ttp.internal.http.RefreshingUrlCache] - Could not find authentication result for 'http://192.168.127.10/ISAPI/VideoIntercom/callStatus?format=json', failing here
2022-06-07 13:33:30.939 [WARN ] [ttp.internal.http.RefreshingUrlCache] - Could not find authentication result for 'http://192.168.127.10/ISAPI/VideoIntercom/callStatus?format=json', failing here
2022-06-07 13:34:00.922 [WARN ] [ttp.internal.http.RefreshingUrlCache] - Could not find authentication result for 'http://192.168.127.10/ISAPI/VideoIntercom/callStatus?format=json', failing here
2022-06-07 13:34:04.223 [INFO ] [nding.http.internal.HttpThingHandler] - Using the secure client for thing 'http:url:bf80a93a29'.
2022-06-07 13:34:05.314 [WARN ] [ttp.internal.http.RefreshingUrlCache] - Could not find authentication result for 'http://192.168.127.10/ISAPI/VideoIntercom/callStatus', failing here
2022-06-07 13:34:35.295 [WARN ] [ttp.internal.http.RefreshingUrlCache] - Could not find authentication result for 'http://192.168.127.10/ISAPI/VideoIntercom/callStatus', failing here
2022-06-07 13:35:05.293 [WARN ] [ttp.internal.http.RefreshingUrlCache] - Could not find authentication result for 'http://192.168.127.10/ISAPI/VideoIntercom/callStatus', failing here
2022-06-07 14:12:01.518 [INFO ] [nding.http.internal.HttpThingHandler] - Using the secure client for thing 'http:url:bf80a93a29'.
2022-06-07 14:12:32.552 [WARN ] [p.internal.http.HttpResponseListener] - Requesting 'http://192.168.127.10/ISAPI/VideoIntercom/callStatus' (method='GET', content='null') failed: org.eclipse.jetty.client.HttpResponseException: HTTP protocol violation: Authentication challenge without WWW-Authenticate header
2022-06-07 14:13:02.556 [WARN ] [p.internal.http.HttpResponseListener] - Requesting 'http://192.168.127.10/ISAPI/VideoIntercom/callStatus' (method='GET', content='null') failed: org.eclipse.jetty.client.HttpResponseException: HTTP protocol violation: Authentication challenge without WWW-Authenticate header
2022-06-07 14:13:32.550 [WARN ] [p.internal.http.HttpResponseListener] - Requesting 'http://192.168.127.10/ISAPI/VideoIntercom/callStatus' (method='GET', content='null') failed: org.eclipse.jetty.client.HttpResponseException: HTTP protocol violation: Authentication challenge without WWW-Authenticate header
2022-06-07 14:14:02.552 [WARN ] [p.internal.http.HttpResponseListener] - Requesting 'http://192.168.127.10/ISAPI/VideoIntercom/callStatus' (method='GET', content='null') failed: org.eclipse.jetty.client.HttpResponseException: HTTP protocol violation: Authentication challenge without WWW-Authenticate header
2022-06-07 14:14:32.552 [WARN ] [p.internal.http.HttpResponseListener] - Requesting 'http://192.168.127.10/ISAPI/VideoIntercom/callStatus' (method='GET', content='null') failed: org.eclipse.jetty.client.HttpResponseException: HTTP protocol violation: Authentication challenge without WWW-Authenticate header
2022-06-07 14:15:02.554 [WARN ] [p.internal.http.HttpResponseListener] - Requesting 'http://192.168.127.10/ISAPI/VideoIntercom/callStatus' (method='GET', content='null') failed: org.eclipse.jetty.client.HttpResponseException: HTTP protocol violation: Authentication challenge without WWW-Authenticate header
2022-06-07 14:15:32.557 [WARN ] [p.internal.http.HttpResponseListener] - Requesting 'http://192.168.127.10/ISAPI/VideoIntercom/callStatus' (method='GET', content='null') failed: org.eclipse.jetty.client.HttpResponseException: HTTP protocol violation: Authentication challenge without WWW-Authenticate header
2022-06-07 14:16:02.566 [WARN ] [p.internal.http.HttpResponseListener] - Requesting 'http://192.168.127.10/ISAPI/VideoIntercom/callStatus' (method='GET', content='null') failed: org.eclipse.jetty.client.HttpResponseException: HTTP protocol violation: Authentication challenge without WWW-Authenticate header
2022-06-07 14:16:32.554 [WARN ] [p.internal.http.HttpResponseListener] - Requesting 'http://192.168.127.10/ISAPI/VideoIntercom/callStatus' (method='GET', content='null') failed: org.eclipse.jetty.client.HttpResponseException: HTTP protocol violation: Authentication challenge without WWW-Authenticate header
2022-06-07 14:17:02.550 [WARN ] [p.internal.http.HttpResponseListener] - Requesting 'http://192.168.127.10/ISAPI/VideoIntercom/callStatus' (method='GET', content='null') failed: org.eclipse.jetty.client.HttpResponseException: HTTP protocol violation: Authentication challenge without WWW-Authenticate header
2022-06-07 14:17:32.555 [WARN ] [p.internal.http.HttpResponseListener] - Requesting 'http://192.168.127.10/ISAPI/VideoIntercom/callStatus' (method='GET', content='null') failed: org.eclipse.jetty.client.HttpResponseException: HTTP protocol violation: Authentication challenge without WWW-Authenticate header
2022-06-07 14:18:02.559 [WARN ] [p.internal.http.HttpResponseListener] - Requesting 'http://192.168.127.10/ISAPI/VideoIntercom/callStatus' (method='GET', content='null') failed: org.eclipse.jetty.client.HttpResponseException: HTTP protocol violation: Authentication challenge without WWW-Authenticate header
2022-06-07 14:18:32.556 [WARN ] [p.internal.http.HttpResponseListener] - Requesting 'http://192.168.127.10/ISAPI/VideoIntercom/callStatus' (method='GET', content='null') failed: org.eclipse.jetty.client.HttpResponseException: HTTP protocol violation: Authentication challenge without WWW-Authenticate header
2022-06-07 14:19:02.567 [WARN ] [p.internal.http.HttpResponseListener] - Requesting 'http://192.168.127.10/ISAPI/VideoIntercom/callStatus' (method='GET', content='null') failed: org.eclipse.jetty.client.HttpResponseException: HTTP protocol violation: Authentication challenge without WWW-Authenticate header
2022-06-07 14:19:32.568 [WARN ] [p.internal.http.HttpResponseListener] - Requesting 'http://192.168.127.10/ISAPI/VideoIntercom/callStatus' (method='GET', content='null') failed: org.eclipse.jetty.client.HttpResponseException: HTTP protocol violation: Authentication challenge without WWW-Authenticate header
2022-06-07 14:20:02.548 [WARN ] [p.internal.http.HttpResponseListener] - Requesting 'http://192.168.127.10/ISAPI/VideoIntercom/callStatus' (method='GET', content='null') failed: org.eclipse.jetty.client.HttpResponseException: HTTP protocol violation: Authentication challenge without WWW-Authenticate header
2022-06-07 14:20:32.565 [WARN ] [p.internal.http.HttpResponseListener] - Requesting 'http://192.168.127.10/ISAPI/VideoIntercom/callStatus' (method='GET', content='null') failed: org.eclipse.jetty.client.HttpResponseException: HTTP protocol violation: Authentication challenge without WWW-Authenticate header
2022-06-07 14:21:02.558 [WARN ] [p.internal.http.HttpResponseListener] - Requesting 'http://192.168.127.10/ISAPI/VideoIntercom/callStatus' (method='GET', content='null') failed: org.eclipse.jetty.client.HttpResponseException: HTTP protocol violation: Authentication challenge without WWW-Authenticate header
2022-06-07 14:21:32.566 [WARN ] [p.internal.http.HttpResponseListener] - Requesting 'http://192.168.127.10/ISAPI/VideoIntercom/callStatus' (method='GET', content='null') failed: org.eclipse.jetty.client.HttpResponseException: HTTP protocol violation: Authentication challenge without WWW-Authenticate header
2022-06-07 14:22:02.562 [WARN ] [p.internal.http.HttpResponseListener] - Requesting 'http://192.168.127.10/ISAPI/VideoIntercom/callStatus' (method='GET', content='null') failed: org.eclipse.jetty.client.HttpResponseException: HTTP protocol violation: Authentication challenge without WWW-Authenticate header
2022-06-07 14:22:32.559 [WARN ] [p.internal.http.HttpResponseListener] - Requesting 'http://192.168.127.10/ISAPI/VideoIntercom/callStatus' (method='GET', content='null') failed: org.eclipse.jetty.client.HttpResponseException: HTTP protocol violation: Authentication challenge without WWW-Authenticate header
2022-06-07 14:23:02.568 [WARN ] [p.internal.http.HttpResponseListener] - Requesting 'http://192.168.127.10/ISAPI/VideoIntercom/callStatus' (method='GET', content='null') failed: org.eclipse.jetty.client.HttpResponseException: HTTP protocol violation: Authentication challenge without WWW-Authenticate header
2022-06-07 14:23:32.565 [WARN ] [p.internal.http.HttpResponseListener] - Requesting 'http://192.168.127.10/ISAPI/VideoIntercom/callStatus' (method='GET', content='null') failed: org.eclipse.jetty.client.HttpResponseException: HTTP protocol violation: Authentication challenge without WWW-Authenticate header
2022-06-07 14:24:02.556 [WARN ] [p.internal.http.HttpResponseListener] - Requesting 'http://192.168.127.10/ISAPI/VideoIntercom/callStatus' (method='GET', content='null') failed: org.eclipse.jetty.client.HttpResponseException: HTTP protocol violation: Authentication challenge without WWW-Authenticate header
2022-06-07 14:24:32.564 [WARN ] [p.internal.http.HttpResponseListener] - Requesting 'http://192.168.127.10/ISAPI/VideoIntercom/callStatus' (method='GET', content='null') failed: org.eclipse.jetty.client.HttpResponseException: HTTP protocol violation: Authentication challenge without WWW-Authenticate header

Result: when OH is initialized channel reads the status OK but further attempts refresh the status fail.

Here is the thing definition

label: $Door Bell
thingTypeUID: http:url
configuration:
  authMode: DIGEST
  ignoreSSLErrors: false
  baseURL: http://192.168.127.10
  password: ********
  delay: 0
  stateMethod: GET
  refresh: 30
  commandMethod: PUT
  contentType: application/json
  timeout: 3000
  bufferSize: 2048
  username: admin
channels:
  - id: callstatus
    channelTypeUID: http:string
    label: Call Status
    description: ""
    configuration:
      mode: READONLY
      stateExtension: /ISAPI/VideoIntercom/callStatus
      stateTransformation: REGEX:(.*status.*)∩JSONPATH:$.CallStatus.status
1 Like

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.