Hi to all binding devs!
I am currently stuck with a strange situation when I am using the jetty httpclient in my Nanoleaf binding:
- I am calling a URL with a simple GET request method
and it just times out. To prove that it is related to the httpClient
- I curled it on the server and it replies in milliseconds
- I implemented the same request with Java-Standard ways (URL, URLConnection.openConnection) and it works blazingly fast, too, without any timeout…
I am logging out everything that I provide to the httpClient Request and I am 100% sure that I provide the same that I provide to the standard Java Classes.
I then went further to track down the issue by even adding a RequestListenerAdapter to the Request of the httpClient to log out each of the methods being called internally and it shows that only “onQueued” and “onFailure” are being called. I also checked if the httpClient.isRunning (true).
After more than a day of trying to find out the cause I am running out of ideas as I am not sure if there is a way to tell the library within OH to log out detailed information nor is it possible to do remote debugging in OH, afaik.
If I don’t find the cause I see no other chance to throw out httpClient by using the good old Java library approach, though I am not sure if that has a major downside within openhab and I rather would like to find out the root cause of the issue.
I would be very happy if anyone has an idea what the problem might be or how I can further investigate the issue?
Thanks in advance