Invalid Path error from http binding

I am using the http binding to read data from a webserver. The data comes across in JSON. I have been doing this without issues for at least a year. All of a sudden in the past three days my log is full of errors (see bottom).

The errors first cropped up around three days ago and I thought I initially resolved it with a reboot, however today it has occurred again. This time the errors resolved on their own without a reboot, so I suspect it isn’t anything on my end.

I’m not sure if I am reading this correctly - could the log be saying that the data does not exist ie it was not sent from the webserver?

 21:19:38.490 [WARN ] [hab.binding.http.internal.HttpBinding] - Transformation 'JSONPATH($.data.last_data.DA.amOn)' threw an exception. [response=An internal server error prevented this request from being successfully processed.  Error Reference: 43e7f619-55e2-4b78-909f-b9fbe72ce6e0]
org.openhab.core.transform.TransformationException: Invalid path '$.data.last_data.DA.amOn' in 'An internal server error prevented this request from being successfully processed.  Error Reference: 43e7f619-55e2-4b78-909f-b9fbe72ce6e0'
    at org.openhab.core.transform.TransformationHelper$TransformationServiceDelegate.transform(TransformationHelper.java:67) ~[197:org.openhab.core.compat1x:2.4.0]
    at org.openhab.binding.http.internal.HttpBinding.execute(HttpBinding.java:194) [236:org.openhab.binding.http:1.13.0]
    at org.openhab.core.binding.AbstractActiveBinding$BindingActiveService.execute(AbstractActiveBinding.java:144) [197:org.openhab.core.compat1x:2.4.0]
    at org.openhab.core.service.AbstractActiveService$RefreshThread.run(AbstractActiveService.java:166) [197:org.openhab.core.compat1x:2.4.0]
21:19:38.570 [WARN ] [hab.binding.http.internal.HttpBinding] - Transformation 'JSONPATH($.data.last_data.DA.mode)' threw an exception. [response=An internal server error prevented this request from being successfully processed.  Error Reference: 43e7f619-55e2-4b78-909f-b9fbe72ce6e0]
org.openhab.core.transform.TransformationException: Invalid path '$.data.last_data.DA.mode' in 'An internal server error prevented this request from being successfully processed.  Error Reference: 43e7f619-55e2-4b78-909f-b9fbe72ce6e0'
    at org.openhab.core.transform.TransformationHelper$TransformationServiceDelegate.transform(TransformationHelper.java:67) ~[197:org.openhab.core.compat1x:2.4.0]
    at org.openhab.binding.http.internal.HttpBinding.execute(HttpBinding.java:194) [236:org.openhab.binding.http:1.13.0]
    at org.openhab.core.binding.AbstractActiveBinding$BindingActiveService.execute(AbstractActiveBinding.java:144) [197:org.openhab.core.compat1x:2.4.0]
    at org.openhab.core.service.AbstractActiveService$RefreshThread.run(AbstractActiveService.java:166) [197:org.openhab.core.compat1x:2.4.0]
21:19:38.590 [WARN ] [hab.binding.http.internal.HttpBinding] - Transformation 'JSONPATH($.data.last_data.DA.tempTarget)' threw an exception. [response=An internal server error prevented this request from being successfully processed.  Error Reference: 43e7f619-55e2-4b78-909f-b9fbe72ce6e0]
org.openhab.core.transform.TransformationException: Invalid path '$.data.last_data.DA.tempTarget' in 'An internal server error prevented this request from being successfully processed.  Error Reference: 43e7f619-55e2-4b78-909f-b9fbe72ce6e0'
    at org.openhab.core.transform.TransformationHelper$TransformationServiceDelegate.transform(TransformationHelper.java:67) ~[197:org.openhab.core.compat1x:2.4.0]
    at org.openhab.binding.http.internal.HttpBinding.execute(HttpBinding.java:194) [236:org.openhab.binding.http:1.13.0]
    at org.openhab.core.binding.AbstractActiveBinding$BindingActiveService.execute(AbstractActiveBinding.java:144) [197:org.openhab.core.compat1x:2.4.0]
    at org.openhab.core.service.AbstractActiveService$RefreshThread.run(AbstractActiveService.java:166) [197:org.openhab.core.compat1x:2.4.0]
21:19:38.633 [WARN ] [hab.binding.http.internal.HttpBinding] - Transformation 'JSONPATH($.data.last_data.DA.fanSpeed)' threw an exception. [response=An internal server error prevented this request from being successfully processed.  Error Reference: 43e7f619-55e2-4b78-909f-b9fbe72ce6e0]
org.openhab.core.transform.TransformationException: Invalid path '$.data.last_data.DA.fanSpeed' in 'An internal server error prevented this request from being successfully processed.  Error Reference: 43e7f619-55e2-4b78-909f-b9fbe72ce6e0'
    at org.openhab.core.transform.TransformationHelper$TransformationServiceDelegate.transform(TransformationHelper.java:67) ~[197:org.openhab.core.compat1x:2.4.0]
    at org.openhab.binding.http.internal.HttpBinding.execute(HttpBinding.java:194) [236:org.openhab.binding.http:1.13.0]
    at org.openhab.core.binding.AbstractActiveBinding$BindingActiveService.execute(AbstractActiveBinding.java:144) [197:org.openhab.core.compat1x:2.4.0]
    at org.openhab.core.service.AbstractActiveService$RefreshThread.run(AbstractActiveService.java:166) [197:org.openhab.core.compat1x:2.4.0]
21:19:42.836 [WARN ] [hab.binding.http.internal.HttpBinding] - Transformation 'JSONPATH($.data.last_data.DA.amOn)' threw an exception. [response=An internal server error prevented this request from being successfully processed.  Error Reference: 43e7f619-55e2-4b78-909f-b9fbe72ce6e0]
org.openhab.core.transform.TransformationException: Invalid path '$.data.last_data.DA.amOn' in 'An internal server error prevented this request from being successfully processed.  Error Reference: 43e7f619-55e2-4b78-909f-b9fbe72ce6e0'
    at org.openhab.core.transform.TransformationHelper$TransformationServiceDelegate.transform(TransformationHelper.java:67) ~[197:org.openhab.core.compat1x:2.4.0]
    at org.openhab.binding.http.internal.HttpBinding.execute(HttpBinding.java:194) [236:org.openhab.binding.http:1.13.0]
    at org.openhab.core.binding.AbstractActiveBinding$BindingActiveService.execute(AbstractActiveBinding.java:144) [197:org.openhab.core.compat1x:2.4.0]
    at org.openhab.core.service.AbstractActiveService$RefreshThread.run(AbstractActiveService.java:166) [197:org.openhab.core.compat1x:2.4.0]
21:19:42.907 [WARN ] [hab.binding.http.internal.HttpBinding] - Transformation 'JSONPATH($.data.last_data.DA.mode)' threw an exception. [response=An internal server error prevented this request from being successfully processed.  Error Reference: 43e7f619-55e2-4b78-909f-b9fbe72ce6e0]
org.openhab.core.transform.TransformationException: Invalid path '$.data.last_data.DA.mode' in 'An internal server error prevented this request from being successfully processed.  Error Reference: 43e7f619-55e2-4b78-909f-b9fbe72ce6e0'
    at org.openhab.core.transform.TransformationHelper$TransformationServiceDelegate.transform(TransformationHelper.java:67) ~[197:org.openhab.core.compat1x:2.4.0]
    at org.openhab.binding.http.internal.HttpBinding.execute(HttpBinding.java:194) [236:org.openhab.binding.http:1.13.0]
    at org.openhab.core.binding.AbstractActiveBinding$BindingActiveService.execute(AbstractActiveBinding.java:144) [197:org.openhab.core.compat1x:2.4.0]
    at org.openhab.core.service.AbstractActiveService$RefreshThread.run(AbstractActiveService.java:166) [197:org.openhab.core.compat1x:2.4.0]
21:19:42.918 [WARN ] [hab.binding.http.internal.HttpBinding] - Transformation 'JSONPATH($.data.last_data.DA.tempTarget)' threw an exception. [response=An internal server error prevented this request from being successfully processed.  Error Reference: 43e7f619-55e2-4b78-909f-b9fbe72ce6e0]
org.openhab.core.transform.TransformationException: Invalid path '$.data.last_data.DA.tempTarget' in 'An internal server error prevented this request from being successfully processed.  Error Reference: 43e7f619-55e2-4b78-909f-b9fbe72ce6e0'
    at org.openhab.core.transform.TransformationHelper$TransformationServiceDelegate.transform(TransformationHelper.java:67) ~[197:org.openhab.core.compat1x:2.4.0]
    at org.openhab.binding.http.internal.HttpBinding.execute(HttpBinding.java:194) [236:org.openhab.binding.http:1.13.0]
    at org.openhab.core.binding.AbstractActiveBinding$BindingActiveService.execute(AbstractActiveBinding.java:144) [197:org.openhab.core.compat1x:2.4.0]
    at org.openhab.core.service.AbstractActiveService$RefreshThread.run(AbstractActiveService.java:166) [197:org.openhab.core.compat1x:2.4.0]
21:19:42.961 [WARN ] [hab.binding.http.internal.HttpBinding] - Transformation 'JSONPATH($.data.last_data.DA.fanSpeed)' threw an exception. [response=An internal server error prevented this request from being successfully processed.  Error Reference: 43e7f619-55e2-4b78-909f-b9fbe72ce6e0]
org.openhab.core.transform.TransformationException: Invalid path '$.data.last_data.DA.fanSpeed' in 'An internal server error prevented this request from being successfully processed.  Error Reference: 43e7f619-55e2-4b78-909f-b9fbe72ce6e0'
    at org.openhab.core.transform.TransformationHelper$TransformationServiceDelegate.transform(TransformationHelper.java:67) ~[197:org.openhab.core.compat1x:2.4.0]
    at org.openhab.binding.http.internal.HttpBinding.execute(HttpBinding.java:194) [236:org.openhab.binding.http:1.13.0]
    at org.openhab.core.binding.AbstractActiveBinding$BindingActiveService.execute(AbstractActiveBinding.java:144) [197:org.openhab.core.compat1x:2.4.0]
    at org.openhab.core.service.AbstractActiveService$RefreshThread.run(AbstractActiveService.java:166) [197:org.openhab.core.compat1x:2.4.0]

Depending how you are using HTTP, wouldn’t you expect to detect a no response in some other way? More likely the response is valid but not suitable for your transformation, example “Please wait”

Hi @rossko57

Do you think this is what the webserver is sending back?

Correct, this is the message you recieve and try to decode. The transformationservice doesn’t find the pattern and creates the warn message.

Thanks @opus

Just a query: the Reference: part of the response is dynamic. Do you know if it is possible to capture only the first part of the response?

No, you get it all, however using a rule you can do whatever is needed.