HTTP Binding not working - How do I debug it?

I have two http bindings that are meant to perform a post to a service I have that performs a find my iphone request.

The bindings looks as follows

Switch Find_Kaths_Phone "Find Kaths Phone" <contact> (Find) {http=">[ON:POST:http://dar-app-02:9999/FindPhone]"} Switch Find_Adams_IPad "Find Adams Ipad" <contact> (Find) {http=">[ON:POST:http://dar-app-02:9999/FindPhone/Adam%27s+iPad]"}

The first binding works fine, but the second doesn’t appear to get sent. I have tested both using a rest test program in chrome and they do both work. Looking at the server log it just doesn’t appear that the second one gets fired. Is there anywhere I can look to try and see why it’s not working?

Ta

Ross

Do you have debug logging enabled for the http binding?

How do I enable that?

I added this to my logback.xml

<logger name="org.openhab.binding.http" level="DEBUG" />

but that isn’t showing me anything more in the logs

Try this, for an extra level of detail:

Thanks for this, but nothing about my requests appeared in that log so it looks like they are not even getting made :confused:

This log file is also empty:

logs/http.log logs/http-%d{yyyy-ww}.log.zip 7 %d{yyyy-MM-dd HH:mm:ss} %-5level %logger{30}[:%line]- %msg%n%ex{5}

Any more ideas?

For OH2 console:

log:set DEBUG org.openhab.binding.http

1 Like

I know this is a very old thread, but I just had the same problem. HTTP binding related functionality was no longer working, enabling DEBUG did not show anything, restarting the bundle in the console restored functionality and debug logging also started to show up.