[openhabcloud] HTTP protocol violation: Authentication challenge without WWW-Authenticate header

I am getting the following errors when i am trying to access remote OH3 dashboard via private openhab-cloud. Do you have idea why i get such an error since the codes are from github.

17:20:59.085 [hecodecloud-408] WARN o.o.i.t.internal.CloudClient:639 - Jetty request 54 failed: HTTP protocol violation: Authentication challenge without WWW-Authenticate header
17:20:59.086 [hecodecloud-408] WARN o.o.i.t.internal.CloudClient:645 - Response Failure: HTTP protocol violation: Authentication challenge without WWW-Authenticate header

Hi, have a look here

should help.

@Schnuecks it’s unrelated to the post you tagged.
It’s infact related to this

I think it is still not resolved

There is a pull request created.
It should be solved in next iteration of webui snapshot

The pull only solved one part of the problems. The problem that i am facing is openhabcloud actually passes its credentials via authorization header to remote openhab instance, which username and passwords are different. Unless we add the follow code to avoid this issue on openhabcloud route’s index.js:

 if (requestPath.indexOf('/remote/') === 0) {
        requestPath = requestPath.replace('/remote', '');
        // TODO: this is too dirty :-(
        delete requestHeaders['host'];
        if(requestPath.indexOf('/remote/auth') !== 0){
            delete requestHeaders['authorization'];
        }
        requestHeaders['host'] = 'home.' + system.getHost() + ':' + system.getPort();
    }else{
        delete requestHeaders['authorization'];
    }

If you know the answer (you did checked, didn’t you?), why don’t you issue a Pull Request?

Yeah, but i am not sure how to do Pull Request.

Hi All,

I have the same issue here. OH3.1.0 build #2312

when I start the device discovery on Alex app, I see:

2021-04-10 18:50:55.841 [WARN ] [io.openhabcloud.internal.CloudClient] - Jetty request 3236513 failed: HTTP protocol violation: Authentication challenge without WWW-Authenticate header
2021-04-10 18:50:55.848 [WARN ] [io.openhabcloud.internal.CloudClient] - Response Failure: HTTP protocol violation: Authentication challenge without WWW-Authenticate header

and the switch is not found. But it works. And it works also via Alexa, even if not in the devices list (in Alexa app).

Boh? :slight_smile:
Andrea

edit: tried with another switch, … device unresponsive in Alexa app … but it works perfectly in OH App :slight_smile:

@digitaldan

Hi Dan, I don’t remember if you are the maintainer of openhab-cloud, please let me know if someone else is in charge of it.

It seems we have an issue here, and perhaps @lsafelix75 found a fix. May I ask you to help us here?

thanks
Andrea

the TRACE is not helping me :frowning: here when I try to discover a new device:

2021-04-11 11:36:36.753 [DEBUG] [io.openhabcloud.internal.CloudClient] - on(): request
2021-04-11 11:36:36.755 [DEBUG] [io.openhabcloud.internal.CloudClient] - Got request 3592916
2021-04-11 11:36:36.757 [DEBUG] [io.openhabcloud.internal.CloudClient] - {"host":"myopenhab.org","cache-control":"no-cache","accept-encoding":"gzip, deflate","accept":"application/json","user-agent":"openhab-cloud/0.0.1"}
2021-04-11 11:36:36.758 [DEBUG] [io.openhabcloud.internal.CloudClient] - Request method is GET
2021-04-11 11:36:36.759 [DEBUG] [io.openhabcloud.internal.CloudClient] - Jetty set header host = myopenhab.org
2021-04-11 11:36:36.760 [DEBUG] [io.openhabcloud.internal.CloudClient] - Jetty set header cache-control = no-cache
2021-04-11 11:36:36.761 [DEBUG] [io.openhabcloud.internal.CloudClient] - Jetty set header accept-encoding = gzip, deflate
2021-04-11 11:36:36.762 [DEBUG] [io.openhabcloud.internal.CloudClient] - Jetty set header accept = application/json
2021-04-11 11:36:36.762 [DEBUG] [io.openhabcloud.internal.CloudClient] - Jetty set header user-agent = openhab-cloud/0.0.1
2021-04-11 11:36:36.858 [DEBUG] [io.openhabcloud.internal.CloudClient] - on(): request
2021-04-11 11:36:36.860 [DEBUG] [io.openhabcloud.internal.CloudClient] - Got request 3592917
2021-04-11 11:36:36.861 [DEBUG] [io.openhabcloud.internal.CloudClient] - {"host":"myopenhab.org","cache-control":"no-cache","accept-encoding":"gzip, deflate","accept":"application/json","user-agent":"openhab-cloud/0.0.1"}
2021-04-11 11:36:36.863 [DEBUG] [io.openhabcloud.internal.CloudClient] - Request method is GET
2021-04-11 11:36:36.864 [DEBUG] [io.openhabcloud.internal.CloudClient] - Jetty set header host = myopenhab.org
2021-04-11 11:36:36.866 [DEBUG] [io.openhabcloud.internal.CloudClient] - Jetty set header cache-control = no-cache
2021-04-11 11:36:36.867 [DEBUG] [io.openhabcloud.internal.CloudClient] - Jetty set header accept-encoding = gzip, deflate
2021-04-11 11:36:36.869 [DEBUG] [io.openhabcloud.internal.CloudClient] - Jetty set header accept = application/json
2021-04-11 11:36:36.870 [DEBUG] [io.openhabcloud.internal.CloudClient] - Jetty set header user-agent = openhab-cloud/0.0.1
2021-04-11 11:36:36.916 [DEBUG] [io.openhabcloud.internal.CloudClient] - Jetty finished receiving response header
2021-04-11 11:36:36.920 [DEBUG] [io.openhabcloud.internal.CloudClient] - Sent headers to request 3592916
2021-04-11 11:36:36.921 [DEBUG] [io.openhabcloud.internal.CloudClient] - {"headers":{"Transfer-Encoding":"chunked","Server":"Jetty(9.4.38.v20210224)","Date":"Sun, 11 Apr 2021 09:36:36 GMT","Content-Type":"application/json"},"responseStatusCode":200,"responseStatusText":"OK","id":3592916}
2021-04-11 11:36:36.922 [DEBUG] [io.openhabcloud.internal.CloudClient] - Jetty received response content of size 16229
2021-04-11 11:36:36.923 [DEBUG] [io.openhabcloud.internal.CloudClient] - Sent content to request 3592916
2021-04-11 11:36:36.923 [DEBUG] [io.openhabcloud.internal.CloudClient] - Jetty received response content of size 16229
2021-04-11 11:36:36.924 [DEBUG] [io.openhabcloud.internal.CloudClient] - Sent content to request 3592916
2021-04-11 11:36:36.983 [DEBUG] [io.openhabcloud.internal.CloudClient] - Jetty received response content of size 16384
2021-04-11 11:36:37.012 [DEBUG] [io.openhabcloud.internal.CloudClient] - Sent content to request 3592916
2021-04-11 11:36:37.013 [DEBUG] [io.openhabcloud.internal.CloudClient] - Jetty received response content of size 16384
2021-04-11 11:36:37.013 [DEBUG] [io.openhabcloud.internal.CloudClient] - Sent content to request 3592916
2021-04-11 11:36:37.014 [DEBUG] [io.openhabcloud.internal.CloudClient] - Jetty received response content of size 155
2021-04-11 11:36:37.014 [DEBUG] [io.openhabcloud.internal.CloudClient] - Sent content to request 3592916
2021-04-11 11:36:37.015 [DEBUG] [io.openhabcloud.internal.CloudClient] - Jetty received response content of size 155
2021-04-11 11:36:37.015 [DEBUG] [io.openhabcloud.internal.CloudClient] - Sent content to request 3592916
2021-04-11 11:36:37.071 [DEBUG] [io.openhabcloud.internal.CloudClient] - Jetty finished receiving response header
2021-04-11 11:36:37.073 [DEBUG] [io.openhabcloud.internal.CloudClient] - Sent headers to request 3592917
2021-04-11 11:36:37.074 [DEBUG] [io.openhabcloud.internal.CloudClient] - {"headers":{"Transfer-Encoding":"chunked","Server":"Jetty(9.4.38.v20210224)","Date":"Sun, 11 Apr 2021 09:36:37 GMT","Content-Type":"application/json"},"responseStatusCode":200,"responseStatusText":"OK","id":3592917}
2021-04-11 11:36:37.075 [DEBUG] [io.openhabcloud.internal.CloudClient] - Jetty received response content of size 1843
2021-04-11 11:36:37.075 [DEBUG] [io.openhabcloud.internal.CloudClient] - Sent content to request 3592917
2021-04-11 11:36:37.076 [DEBUG] [io.openhabcloud.internal.CloudClient] - Jetty received response content of size 1843
2021-04-11 11:36:37.077 [DEBUG] [io.openhabcloud.internal.CloudClient] - Sent content to request 3592917
2021-04-11 11:36:37.080 [DEBUG] [io.openhabcloud.internal.CloudClient] - Finished responding to request 3592917
2021-04-11 11:36:37.090 [DEBUG] [io.openhabcloud.internal.CloudClient] - Jetty received response content of size 16376
2021-04-11 11:36:37.092 [DEBUG] [io.openhabcloud.internal.CloudClient] - Sent content to request 3592916
2021-04-11 11:36:37.093 [DEBUG] [io.openhabcloud.internal.CloudClient] - Jetty received response content of size 16376
2021-04-11 11:36:37.093 [DEBUG] [io.openhabcloud.internal.CloudClient] - Sent content to request 3592916
2021-04-11 11:36:37.094 [DEBUG] [io.openhabcloud.internal.CloudClient] - Jetty received response content of size 16384
2021-04-11 11:36:37.094 [DEBUG] [io.openhabcloud.internal.CloudClient] - Sent content to request 3592916
2021-04-11 11:36:37.095 [DEBUG] [io.openhabcloud.internal.CloudClient] - Jetty received response content of size 16384
2021-04-11 11:36:37.095 [DEBUG] [io.openhabcloud.internal.CloudClient] - Sent content to request 3592916
2021-04-11 11:36:37.096 [DEBUG] [io.openhabcloud.internal.CloudClient] - Jetty received response content of size 8
2021-04-11 11:36:37.097 [DEBUG] [io.openhabcloud.internal.CloudClient] - Sent content to request 3592916
2021-04-11 11:36:37.098 [DEBUG] [io.openhabcloud.internal.CloudClient] - Jetty received response content of size 8
2021-04-11 11:36:37.099 [DEBUG] [io.openhabcloud.internal.CloudClient] - Sent content to request 3592916
2021-04-11 11:36:37.148 [DEBUG] [io.openhabcloud.internal.CloudClient] - on(): request
2021-04-11 11:36:37.150 [DEBUG] [io.openhabcloud.internal.CloudClient] - Got request 3592918
2021-04-11 11:36:37.151 [DEBUG] [io.openhabcloud.internal.CloudClient] - {"host":"myopenhab.org","cache-control":"no-cache","accept-encoding":"gzip, deflate","accept":"application/json","user-agent":"openhab-cloud/0.0.1"}
2021-04-11 11:36:37.153 [DEBUG] [io.openhabcloud.internal.CloudClient] - Request method is GET
2021-04-11 11:36:37.154 [DEBUG] [io.openhabcloud.internal.CloudClient] - Jetty set header host = myopenhab.org
2021-04-11 11:36:37.156 [DEBUG] [io.openhabcloud.internal.CloudClient] - Jetty set header cache-control = no-cache
2021-04-11 11:36:37.158 [DEBUG] [io.openhabcloud.internal.CloudClient] - Jetty set header accept-encoding = gzip, deflate
2021-04-11 11:36:37.160 [DEBUG] [io.openhabcloud.internal.CloudClient] - Jetty set header accept = application/json
2021-04-11 11:36:37.162 [DEBUG] [io.openhabcloud.internal.CloudClient] - Jetty set header user-agent = openhab-cloud/0.0.1
2021-04-11 11:36:37.172 [DEBUG] [io.openhabcloud.internal.CloudClient] - Jetty finished receiving response header
2021-04-11 11:36:37.174 [DEBUG] [io.openhabcloud.internal.CloudClient] - Sent headers to request 3592918
2021-04-11 11:36:37.175 [DEBUG] [io.openhabcloud.internal.CloudClient] - {"headers":{"Transfer-Encoding":"chunked","Server":"Jetty(9.4.38.v20210224)","Date":"Sun, 11 Apr 2021 09:36:37 GMT","Content-Type":"application/json"},"responseStatusCode":401,"responseStatusText":"OK","id":3592918}
2021-04-11 11:36:37.176 [DEBUG] [io.openhabcloud.internal.CloudClient] - Jetty received response content of size 63
2021-04-11 11:36:37.177 [DEBUG] [io.openhabcloud.internal.CloudClient] - Sent content to request 3592918
2021-04-11 11:36:37.178 [DEBUG] [io.openhabcloud.internal.CloudClient] - Jetty received response content of size 63
2021-04-11 11:36:37.180 [DEBUG] [io.openhabcloud.internal.CloudClient] - Sent content to request 3592918
2021-04-11 11:36:37.181 [WARN ] [io.openhabcloud.internal.CloudClient] - Jetty request 3592918 failed: HTTP protocol violation: Authentication challenge without WWW-Authenticate header
2021-04-11 11:36:37.182 [WARN ] [io.openhabcloud.internal.CloudClient] - Response Failure: HTTP protocol violation: Authentication challenge without WWW-Authenticate header
2021-04-11 11:36:37.187 [DEBUG] [io.openhabcloud.internal.CloudClient] - Finished responding to request 3592918
2021-04-11 11:36:37.215 [DEBUG] [io.openhabcloud.internal.CloudClient] - Jetty received response content of size 16376
2021-04-11 11:36:37.224 [DEBUG] [io.openhabcloud.internal.CloudClient] - Sent content to request 3592916
2021-04-11 11:36:37.225 [DEBUG] [io.openhabcloud.internal.CloudClient] - Jetty received response content of size 16376
2021-04-11 11:36:37.226 [DEBUG] [io.openhabcloud.internal.CloudClient] - Sent content to request 3592916
2021-04-11 11:36:37.227 [DEBUG] [io.openhabcloud.internal.CloudClient] - Jetty received response content of size 16384
2021-04-11 11:36:37.227 [DEBUG] [io.openhabcloud.internal.CloudClient] - Sent content to request 3592916
2021-04-11 11:36:37.229 [DEBUG] [io.openhabcloud.internal.CloudClient] - Jetty received response content of size 16384
2021-04-11 11:36:37.233 [DEBUG] [io.openhabcloud.internal.CloudClient] - Sent content to request 3592916
2021-04-11 11:36:37.235 [DEBUG] [io.openhabcloud.internal.CloudClient] - Jetty received response content of size 8
2021-04-11 11:36:37.237 [DEBUG] [io.openhabcloud.internal.CloudClient] - Sent content to request 3592916
2021-04-11 11:36:37.237 [DEBUG] [io.openhabcloud.internal.CloudClient] - Jetty received response content of size 8
2021-04-11 11:36:37.238 [DEBUG] [io.openhabcloud.internal.CloudClient] - Sent content to request 3592916
2021-04-11 11:36:37.322 [DEBUG] [io.openhabcloud.internal.CloudClient] - Jetty received response content of size 16376
2021-04-11 11:36:37.323 [DEBUG] [io.openhabcloud.internal.CloudClient] - Sent content to request 3592916
2021-04-11 11:36:37.324 [DEBUG] [io.openhabcloud.internal.CloudClient] - Jetty received response content of size 16376
2021-04-11 11:36:37.324 [DEBUG] [io.openhabcloud.internal.CloudClient] - Sent content to request 3592916
2021-04-11 11:36:37.325 [DEBUG] [io.openhabcloud.internal.CloudClient] - Jetty received response content of size 16384
2021-04-11 11:36:37.325 [DEBUG] [io.openhabcloud.internal.CloudClient] - Sent content to request 3592916
2021-04-11 11:36:37.326 [DEBUG] [io.openhabcloud.internal.CloudClient] - Jetty received response content of size 16384
2021-04-11 11:36:37.326 [DEBUG] [io.openhabcloud.internal.CloudClient] - Sent content to request 3592916
2021-04-11 11:36:37.327 [DEBUG] [io.openhabcloud.internal.CloudClient] - Jetty received response content of size 8
2021-04-11 11:36:37.327 [DEBUG] [io.openhabcloud.internal.CloudClient] - Sent content to request 3592916
2021-04-11 11:36:37.328 [DEBUG] [io.openhabcloud.internal.CloudClient] - Jetty received response content of size 8
2021-04-11 11:36:37.329 [DEBUG] [io.openhabcloud.internal.CloudClient] - Sent content to request 3592916
2021-04-11 11:36:37.420 [DEBUG] [io.openhabcloud.internal.CloudClient] - Jetty received response content of size 16376
2021-04-11 11:36:37.422 [DEBUG] [io.openhabcloud.internal.CloudClient] - Sent content to request 3592916
2021-04-11 11:36:37.422 [DEBUG] [io.openhabcloud.internal.CloudClient] - Jetty received response content of size 16376
2021-04-11 11:36:37.423 [DEBUG] [io.openhabcloud.internal.CloudClient] - Sent content to request 3592916
2021-04-11 11:36:37.423 [DEBUG] [io.openhabcloud.internal.CloudClient] - Jetty received response content of size 16384
2021-04-11 11:36:37.424 [DEBUG] [io.openhabcloud.internal.CloudClient] - Sent content to request 3592916
2021-04-11 11:36:37.429 [DEBUG] [io.openhabcloud.internal.CloudClient] - Jetty received response content of size 16384
2021-04-11 11:36:37.480 [DEBUG] [io.openhabcloud.internal.CloudClient] - Sent content to request 3592916
2021-04-11 11:36:37.481 [DEBUG] [io.openhabcloud.internal.CloudClient] - Jetty received response content of size 8
2021-04-11 11:36:37.481 [DEBUG] [io.openhabcloud.internal.CloudClient] - Sent content to request 3592916
2021-04-11 11:36:37.482 [DEBUG] [io.openhabcloud.internal.CloudClient] - Jetty received response content of size 8
2021-04-11 11:36:37.482 [DEBUG] [io.openhabcloud.internal.CloudClient] - Sent content to request 3592916
2021-04-11 11:36:37.565 [DEBUG] [io.openhabcloud.internal.CloudClient] - Jetty received response content of size 16376
2021-04-11 11:36:37.571 [DEBUG] [io.openhabcloud.internal.CloudClient] - Sent content to request 3592916
2021-04-11 11:36:37.571 [DEBUG] [io.openhabcloud.internal.CloudClient] - Jetty received response content of size 16376
2021-04-11 11:36:37.572 [DEBUG] [io.openhabcloud.internal.CloudClient] - Sent content to request 3592916
2021-04-11 11:36:37.573 [DEBUG] [io.openhabcloud.internal.CloudClient] - Jetty received response content of size 16384
2021-04-11 11:36:37.580 [DEBUG] [io.openhabcloud.internal.CloudClient] - Sent content to request 3592916
2021-04-11 11:36:37.581 [DEBUG] [io.openhabcloud.internal.CloudClient] - Jetty received response content of size 16384
2021-04-11 11:36:37.583 [DEBUG] [io.openhabcloud.internal.CloudClient] - Sent content to request 3592916
2021-04-11 11:36:37.585 [DEBUG] [io.openhabcloud.internal.CloudClient] - Jetty received response content of size 8
2021-04-11 11:36:37.588 [DEBUG] [io.openhabcloud.internal.CloudClient] - Sent content to request 3592916
2021-04-11 11:36:37.597 [DEBUG] [io.openhabcloud.internal.CloudClient] - Jetty received response content of size 8
2021-04-11 11:36:37.604 [DEBUG] [io.openhabcloud.internal.CloudClient] - Sent content to request 3592916
2021-04-11 11:36:37.664 [DEBUG] [io.openhabcloud.internal.CloudClient] - Jetty received response content of size 16376
2021-04-11 11:36:37.665 [DEBUG] [io.openhabcloud.internal.CloudClient] - Sent content to request 3592916
2021-04-11 11:36:37.666 [DEBUG] [io.openhabcloud.internal.CloudClient] - Jetty received response content of size 16376
2021-04-11 11:36:37.667 [DEBUG] [io.openhabcloud.internal.CloudClient] - Sent content to request 3592916
2021-04-11 11:36:37.667 [DEBUG] [io.openhabcloud.internal.CloudClient] - Jetty received response content of size 9101
2021-04-11 11:36:37.668 [DEBUG] [io.openhabcloud.internal.CloudClient] - Sent content to request 3592916
2021-04-11 11:36:37.668 [DEBUG] [io.openhabcloud.internal.CloudClient] - Jetty received response content of size 9101
2021-04-11 11:36:37.669 [DEBUG] [io.openhabcloud.internal.CloudClient] - Sent content to request 3592916
2021-04-11 11:36:37.676 [DEBUG] [io.openhabcloud.internal.CloudClient] - Finished responding to request 3592916
2021-04-11 11:37:16.784 [DEBUG] [io.openhabcloud.internal.CloudClient] - on(): request
2021-04-11 11:37:16.785 [DEBUG] [io.openhabcloud.internal.CloudClient] - Got request 3593192
2021-04-11 11:37:16.786 [DEBUG] [io.openhabcloud.internal.CloudClient] - {"content-length":"3","host":"myopenhab.org","content-type":"text/plain","cache-control":"no-cache","accept-encoding":"gzip, deflate","user-agent":"openhab-cloud/0.0.1"}
2021-04-11 11:37:16.787 [DEBUG] [io.openhabcloud.internal.CloudClient] - Request method is POST
2021-04-11 11:37:16.788 [DEBUG] [io.openhabcloud.internal.CloudClient] - Jetty set header content-length = 3
2021-04-11 11:37:16.788 [DEBUG] [io.openhabcloud.internal.CloudClient] - Jetty set header host = myopenhab.org
2021-04-11 11:37:16.789 [DEBUG] [io.openhabcloud.internal.CloudClient] - Jetty set header content-type = text/plain
2021-04-11 11:37:16.790 [DEBUG] [io.openhabcloud.internal.CloudClient] - Jetty set header cache-control = no-cache
2021-04-11 11:37:16.790 [DEBUG] [io.openhabcloud.internal.CloudClient] - Jetty set header accept-encoding = gzip, deflate
2021-04-11 11:37:16.791 [DEBUG] [io.openhabcloud.internal.CloudClient] - Jetty set header user-agent = openhab-cloud/0.0.1
2021-04-11 11:37:16.801 [DEBUG] [io.openhabcloud.internal.CloudClient] - Jetty finished receiving response header
2021-04-11 11:37:16.804 [DEBUG] [io.openhabcloud.internal.CloudClient] - Sent headers to request 3593192
2021-04-11 11:37:16.804 [DEBUG] [io.openhabcloud.internal.CloudClient] - {"headers":{"Server":"Jetty(9.4.38.v20210224)","Content-Length":"0","Date":"Sun, 11 Apr 2021 09:37:16 GMT","Content-Type":"text/plain"},"responseStatusCode":200,"responseStatusText":"OK","id":3593192}
2021-04-11 11:37:16.806 [DEBUG] [io.openhabcloud.internal.CloudClient] - Finished responding to request 3593192
2021-04-11 11:37:16.889 [DEBUG] [io.openhabcloud.internal.CloudClient] - on(): request
2021-04-11 11:37:16.891 [DEBUG] [io.openhabcloud.internal.CloudClient] - Got request 3593193
2021-04-11 11:37:16.893 [DEBUG] [io.openhabcloud.internal.CloudClient] - {"host":"myopenhab.org","cache-control":"no-cache","accept-encoding":"gzip, deflate","accept":"application/json","user-agent":"openhab-cloud/0.0.1"}
2021-04-11 11:37:16.894 [DEBUG] [io.openhabcloud.internal.CloudClient] - Request method is GET
2021-04-11 11:37:16.896 [DEBUG] [io.openhabcloud.internal.CloudClient] - Jetty set header host = myopenhab.org
2021-04-11 11:37:16.897 [DEBUG] [io.openhabcloud.internal.CloudClient] - Jetty set header cache-control = no-cache
2021-04-11 11:37:16.899 [DEBUG] [io.openhabcloud.internal.CloudClient] - Jetty set header accept-encoding = gzip, deflate
2021-04-11 11:37:16.900 [DEBUG] [io.openhabcloud.internal.CloudClient] - Jetty set header accept = application/json
2021-04-11 11:37:16.903 [DEBUG] [io.openhabcloud.internal.CloudClient] - Jetty set header user-agent = openhab-cloud/0.0.1
2021-04-11 11:37:16.920 [DEBUG] [io.openhabcloud.internal.CloudClient] - Jetty finished receiving response header
2021-04-11 11:37:16.921 [DEBUG] [io.openhabcloud.internal.CloudClient] - Sent headers to request 3593193
2021-04-11 11:37:16.922 [DEBUG] [io.openhabcloud.internal.CloudClient] - {"headers":{"Transfer-Encoding":"chunked","Server":"Jetty(9.4.38.v20210224)","Date":"Sun, 11 Apr 2021 09:37:16 GMT","Content-Type":"application/json"},"responseStatusCode":200,"responseStatusText":"OK","id":3593193}
2021-04-11 11:37:16.923 [DEBUG] [io.openhabcloud.internal.CloudClient] - Jetty received response content of size 213
2021-04-11 11:37:16.923 [DEBUG] [io.openhabcloud.internal.CloudClient] - Sent content to request 3593193
2021-04-11 11:37:16.924 [DEBUG] [io.openhabcloud.internal.CloudClient] - Jetty received response content of size 213
2021-04-11 11:37:16.925 [DEBUG] [io.openhabcloud.internal.CloudClient] - Sent content to request 3593193
2021-04-11 11:37:16.928 [DEBUG] [io.openhabcloud.internal.CloudClient] - Finished responding to request 3593193
2021-04-11 11:37:20.078 [DEBUG] [io.openhabcloud.internal.CloudClient] - on(): request
2021-04-11 11:37:20.079 [DEBUG] [io.openhabcloud.internal.CloudClient] - Got request 3593210
2021-04-11 11:37:20.079 [DEBUG] [io.openhabcloud.internal.CloudClient] - {"content-length":"2","host":"myopenhab.org","content-type":"text/plain","cache-control":"no-cache","accept-encoding":"gzip, deflate","user-agent":"openhab-cloud/0.0.1"}
2021-04-11 11:37:20.080 [DEBUG] [io.openhabcloud.internal.CloudClient] - Request method is POST
2021-04-11 11:37:20.081 [DEBUG] [io.openhabcloud.internal.CloudClient] - Jetty set header content-length = 2
2021-04-11 11:37:20.081 [DEBUG] [io.openhabcloud.internal.CloudClient] - Jetty set header host = myopenhab.org
2021-04-11 11:37:20.082 [DEBUG] [io.openhabcloud.internal.CloudClient] - Jetty set header content-type = text/plain
2021-04-11 11:37:20.082 [DEBUG] [io.openhabcloud.internal.CloudClient] - Jetty set header cache-control = no-cache
2021-04-11 11:37:20.083 [DEBUG] [io.openhabcloud.internal.CloudClient] - Jetty set header accept-encoding = gzip, deflate
2021-04-11 11:37:20.083 [DEBUG] [io.openhabcloud.internal.CloudClient] - Jetty set header user-agent = openhab-cloud/0.0.1
2021-04-11 11:37:20.086 [DEBUG] [io.openhabcloud.internal.CloudClient] - Jetty finished receiving response header
2021-04-11 11:37:20.087 [DEBUG] [io.openhabcloud.internal.CloudClient] - Sent headers to request 3593210
2021-04-11 11:37:20.087 [DEBUG] [io.openhabcloud.internal.CloudClient] - {"headers":{"Server":"Jetty(9.4.38.v20210224)","Content-Length":"0","Date":"Sun, 11 Apr 2021 09:37:20 GMT","Content-Type":"text/plain"},"responseStatusCode":200,"responseStatusText":"OK","id":3593210}
2021-04-11 11:37:20.093 [DEBUG] [io.openhabcloud.internal.CloudClient] - Finished responding to request 3593210
2021-04-11 11:37:20.172 [DEBUG] [io.openhabcloud.internal.CloudClient] - on(): request
2021-04-11 11:37:20.173 [DEBUG] [io.openhabcloud.internal.CloudClient] - Got request 3593213
2021-04-11 11:37:20.174 [DEBUG] [io.openhabcloud.internal.CloudClient] - {"host":"myopenhab.org","cache-control":"no-cache","accept-encoding":"gzip, deflate","accept":"application/json","user-agent":"openhab-cloud/0.0.1"}
2021-04-11 11:37:20.174 [DEBUG] [io.openhabcloud.internal.CloudClient] - Request method is GET
2021-04-11 11:37:20.175 [DEBUG] [io.openhabcloud.internal.CloudClient] - Jetty set header host = myopenhab.org
2021-04-11 11:37:20.176 [DEBUG] [io.openhabcloud.internal.CloudClient] - Jetty set header cache-control = no-cache
2021-04-11 11:37:20.176 [DEBUG] [io.openhabcloud.internal.CloudClient] - Jetty set header accept-encoding = gzip, deflate
2021-04-11 11:37:20.177 [DEBUG] [io.openhabcloud.internal.CloudClient] - Jetty set header accept = application/json
2021-04-11 11:37:20.177 [DEBUG] [io.openhabcloud.internal.CloudClient] - Jetty set header user-agent = openhab-cloud/0.0.1
2021-04-11 11:37:20.185 [DEBUG] [io.openhabcloud.internal.CloudClient] - Jetty finished receiving response header
2021-04-11 11:37:20.187 [DEBUG] [io.openhabcloud.internal.CloudClient] - Sent headers to request 3593213
2021-04-11 11:37:20.187 [DEBUG] [io.openhabcloud.internal.CloudClient] - {"headers":{"Transfer-Encoding":"chunked","Server":"Jetty(9.4.38.v20210224)","Date":"Sun, 11 Apr 2021 09:37:20 GMT","Content-Type":"application/json"},"responseStatusCode":200,"responseStatusText":"OK","id":3593213}
2021-04-11 11:37:20.188 [DEBUG] [io.openhabcloud.internal.CloudClient] - Jetty received response content of size 212
2021-04-11 11:37:20.188 [DEBUG] [io.openhabcloud.internal.CloudClient] - Sent content to request 3593213
2021-04-11 11:37:20.189 [DEBUG] [io.openhabcloud.internal.CloudClient] - Jetty received response content of size 212
2021-04-11 11:37:20.189 [DEBUG] [io.openhabcloud.internal.CloudClient] - Sent content to request 3593213

But I’m not able to find the device in Alexa App, even if it works eventually.

:frowning:

Refer to this pull request.

1 Like

I didn’t understand what is the outcome of that PR … is the issue fixed in the next release? or what?

thanks for your support :slight_smile:
Andrea

I’m confused what we are asking here? Right now the OH3 UI works with our cloud service, we have thousands of users using it without issue. Is this an issue where it’s not working for you specifically ?

I’m experiencing an issue with Alexa App. In particular when I try to discover devices, it seems there a no new devices (but there are). All devices are working, but Alexa App is not seeing some of them (or flagging some as “not responsive”). When this issue starts happening, I’ve seen this log:

2021-04-11 11:43:37.656 [WARN ] [io.openhabcloud.internal.CloudClient] - Jetty request 3595162 failed: HTTP protocol violation: Authentication challenge without WWW-Authenticate header
2021-04-11 11:43:37.665 [WARN ] [io.openhabcloud.internal.CloudClient] - Response Failure: HTTP protocol violation: Authentication challenge without WWW-Authenticate header

With previous releases, all things were working perfectly.
That’s the reason why I’ve raised my hand :slight_smile:

Andrea

What date is your OH build from? I’m having trouble getting to our CI servers to see them. Does your cloud service work at all, can you use our UI or pull REST endpoints? Alexa discovery uses the /rest/items endpoint for discovery, you might want to verify that at least works through your cloud instance. The cloud binding was not working in the nightlies for about a week due to a karaf update, it was fixed ~3 days ago, but i’m not sure which build would have had it.

1 Like

My build now is 2312.

All things are working great … but it seems some devices are managed via Alexa but I can’t discover via Alexa app (or, if already in the list, they result as “not responsive” even if they respond pretty well :))

Thats not really helpful, i dont know what this means. Whats working great? OH? The cloud service? You also did not answer my question about what date your build is.

Using your cloud service, try hitting /rest/items/SOMEDEVCE where SOMEDEVCE is the name of an item, and paste it back here. The issue with the nightlies was the openHAB cloud binding was producing corupted streams, so commands would seem to work, but the responses would be garbled.

Here an item “exposed” to Alexa service via openhabcloud:

Switch Scene_Fitness      "Elli"          {alexa="Switchable"}

here the output of http://myOHipaddress:8080/rest/items/Scene_Fitness

{"link":"http://<myOHipaddress>:8080/rest/items/Scene_Fitness","state":"OFF","editable":false,"type":"Switch","name":"Scene_Fitness","label":"Elli","tags":[],"groupNames":[]}

if I ask Alexa to turn on Elli, it works … but the device is not discoverable in the Alexa App as I was used to do before.

not sure if this is much clearer now :frowning:
Andrea

Did you do this? or are you hitting your local OH instance? We are testing the cloud proxy, so thats the output we are looking for, not directly to your instance.