question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

action taking place only on the second time i ask to do it

See original GitHub issue

hey 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:closed
  • Created 6 years ago
  • Comments:61 (14 by maintainers)

github_iconTop GitHub Comments

3reactions
kmdmcommented, Jul 11, 2017

@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.

2reactions
yjon1commented, Jun 15, 2017

have similar problem. it happens sometimes not always I think it’s random,

Read more comments on GitHub >

github_iconTop Results From Across the Web

Robert's Rules of Order
A person may speak a second time in debate with the assembly's permission. VOTING ON A MOTION: • Before a vote is taken,...
Read more >
Use Repeat actions in Shortcuts on iPhone or iPad
Tip: You can place Repeat actions inside each other in your shortcut: In the shortcut editor, drag a second Repeat action so that...
Read more >
Parliamentary Procedure: A Brief Guide to Robert's Rules of ...
Once a motion is made and seconded, the chair places the question before the council by restating the motion.
Read more >
How Courts Work - American Bar Association
The appellee then has a specified time to file an answering brief. The appellant may then file a second brief answering the appellee's...
Read more >
Present continuous | LearnEnglish - British Council
When we use the present continuous to speak about a regular action, normally that action is happening at or near the time of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found