action taking place only on the second time i ask to do it
See original GitHub issuehey guys. its pretty hard for me to explain whats wrong. but something is defiantly worng. each time i want to control my device (using google home and home assistant) i have to ask it twice even-tho i get a positive feedback from google home. how can i solve the problem?
seaching the log file i ran into this (/var/log/syslog):
Jun 14 17:39:28 habridge java[5326]: Caused by: org.apache.http.ProtocolException: The server failed to respond with a valid HTTP response
and
Jun 14 18:00:31 habridge java[5326]: 2017-06-14 18:00:31,062 [qtp19678540-59] WARN com.bwssystems.HABridge.plugins.http.HTTPHandler - Error calling out to HA gateway: IOException in log Jun 14 18:00:31 habridge java[5326]: org.apache.http.client.ClientProtocolException: null Jun 14 18:00:31 habridge java[5326]: at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:186) Jun 14 18:00:31 habridge java[5326]: at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82) Jun 14 18:00:31 habridge java[5326]: at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:107) Jun 14 18:00:31 habridge java[5326]: at com.bwssystems.HABridge.plugins.http.HTTPHandler.doHttpRequest(HTTPHandler.java:87) Jun 14 18:00:31 habridge java[5326]: at com.bwssystems.HABridge.plugins.hass.HomeAssistant.callCommand(HomeAssistant.java:71) Jun 14 18:00:31 habridge java[5326]: at com.bwssystems.HABridge.plugins.hass.HassHome.deviceHandler(HassHome.java:144) Jun 14 18:00:31 habridge java[5326]: at com.bwssystems.HABridge.hue.HueMulator.changeState(HueMulator.java:997) Jun 14 18:00:31 habridge java[5326]: at com.bwssystems.HABridge.hue.HueMulator.lambda$37(HueMulator.java:420) Jun 14 18:00:31 habridge java[5326]: at spark.RouteImpl$1.handle(RouteImpl.java:58) Jun 14 18:00:31 habridge java[5326]: at spark.webserver.MatcherFilter.doFilter(MatcherFilter.java:162) Jun 14 18:00:31 habridge java[5326]: at spark.webserver.JettyHandler.doHandle(JettyHandler.java:61) Jun 14 18:00:31 habridge java[5326]: at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:189) Jun 14 18:00:31 habridge java[5326]: at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) Jun 14 18:00:31 habridge java[5326]: at org.eclipse.jetty.server.handler.HandlerList.handle(HandlerList.java:52) Jun 14 18:00:31 habridge java[5326]: at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:119) Jun 14 18:00:31 habridge java[5326]: at org.eclipse.jetty.server.Server.handle(Server.java:517) Jun 14 18:00:31 habridge java[5326]: at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:302) Jun 14 18:00:31 habridge java[5326]: at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:242) Jun 14 18:00:31 habridge java[5326]: at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:245) Jun 14 18:00:31 habridge java[5326]: at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:95) Jun 14 18:00:31 habridge java[5326]: at org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:75) Jun 14 18:00:31 habridge java[5326]: at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceAndRun(ExecuteProduceConsume.java:213) Jun 14 18:00:31 habridge java[5326]: at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:147) Jun 14 18:00:31 habridge java[5326]: at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:654) Jun 14 18:00:31 habridge java[5326]: at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:572) Jun 14 18:00:31 habridge java[5326]: at java.lang.Thread.run(Thread.java:748) Jun 14 18:00:31 habridge java[5326]: Caused by: org.apache.http.ProtocolException: The server failed to respond with a valid HTTP response Jun 14 18:00:31 habridge java[5326]: at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:151) Jun 14 18:00:31 habridge java[5326]: at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:57) Jun 14 18:00:31 habridge java[5326]: at org.apache.http.impl.io.AbstractMessageParser.parse(AbstractMessageParser.java:261) Jun 14 18:00:31 habridge java[5326]: at org.apache.http.impl.DefaultBHttpClientConnection.receiveResponseHeader(DefaultBHttpClientConnection.java:165) Jun 14 18:00:31 habridge java[5326]: at org.apache.http.impl.conn.CPoolProxy.receiveResponseHeader(CPoolProxy.java:167) Jun 14 18:00:31 habridge java[5326]: at org.apache.http.protocol.HttpRequestExecutor.doReceiveResponse(HttpRequestExecutor.java:272) Jun 14 18:00:31 habridge java[5326]: at org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:124) Jun 14 18:00:31 habridge java[5326]: at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:271) Jun 14 18:00:31 habridge java[5326]: at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:184) Jun 14 18:00:31 habridge java[5326]: at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:88) Jun 14 18:00:31 habridge java[5326]: at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110) Jun 14 18:00:31 habridge java[5326]: at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184) Jun 14 18:00:31 habridge java[5326]: ... 25 common frames omitted
Issue Analytics
- State:
- Created 6 years ago
- Comments:61 (14 by maintainers)
Top GitHub Comments
@bwssytems Could we get this issue re-opened?
It seems to have a clear solution albeit using a deprecated method and a possible future method that /should/ work but doesn’t (PoolingHttpClientConnectionManager) so it could use further investigation on that front also.
have similar problem. it happens sometimes not always I think it’s random,