[Tankerkönig] Timeout since a few days

Hi Community,

since 23.04.2021 I’ll get no new data from the Tankerkönig-Binding. I have tested with openHAB 3.0.1 und openHAB 3.0.2.

My configuration looks like this and works really good the last few months:

Bridge tankerkoenig:webservice:Tankpreise "Tankpreise" [ apikey="xxx", refresh=60, modeOpeningTime=true ] {

    // OMV Altomünster

    Thing station Station1 "Tankerkönig - OMV Altomünster" @ "GasStations"[ locationid = "29b2c05b-a0ba-455f-b37a-d3c171358f31" ]

    // Aral Dasing

    Thing station Station2 "Tankerkönig - Aral Dasing" @ "GasStations"[ locationid = "268745c9-330f-4269-85e3-0f059dfe7a83" ]

}

Directly vom Tankerkönig also no log-file is available for my API-key - https://creativecommons.tankerkoenig.de/.

In the logfile I see the following error (after switching bundle to DEBUG): java.io.IOException: java.util.concurrent.TimeoutException: Total timeout 5000 ms elapsed

Is it possible to increase the timeout (5000 ms)? Can I test a direct call to the webservice (I have not found the call in the DEBUG-mode)?

Here are my logfiles:

==> /var/log/openhab/openhab.log <==
2021-04-28 07:27:00.365 [DEBUG] [enig.internal.handler.StationHandler] - Try to refresh detail data
2021-04-28 07:27:00.366 [DEBUG] [enig.internal.handler.StationHandler] - Try to refresh detail data
2021-04-28 07:27:05.369 [DEBUG] [ig.internal.data.TankerkoenigService] - getTankerkoenigDetailResult IOException:
java.io.IOException: java.util.concurrent.TimeoutException: Total timeout 5000 ms elapsed
        at org.openhab.core.io.net.http.HttpUtil.executeUrlAndGetReponse(HttpUtil.java:260) ~[bundleFile:?]
        at org.openhab.core.io.net.http.HttpUtil.executeUrl(HttpUtil.java:156) ~[bundleFile:?]
        at org.openhab.core.io.net.http.HttpUtil.executeUrl(HttpUtil.java:131) ~[bundleFile:?]
        at org.openhab.binding.tankerkoenig.internal.data.TankerkoenigService.getResponseString(TankerkoenigService.java:73) ~[bundleFile:?]
        at org.openhab.binding.tankerkoenig.internal.data.TankerkoenigService.getTankerkoenigDetailResult(TankerkoenigService.java:96) [bundleFile:?]
        at org.openhab.binding.tankerkoenig.internal.data.TankerkoenigService.getStationDetailData(TankerkoenigService.java:54) [bundleFile:?]
        at org.openhab.binding.tankerkoenig.internal.handler.StationHandler.updateDetailData(StationHandler.java:175) [bundleFile:?]
        at org.openhab.binding.tankerkoenig.internal.handler.StationHandler.lambda$0(StationHandler.java:98) [bundleFile:?]
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) [?:?]
        at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305) [?:?]
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305) [?:?]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]
        at java.lang.Thread.run(Thread.java:834) [?:?]
Caused by: java.util.concurrent.TimeoutException: Total timeout 5000 ms elapsed
        at org.eclipse.jetty.client.HttpDestination$TimeoutTask.onTimeoutExpired(HttpDestination.java:529) ~[?:?]
        at org.eclipse.jetty.io.CyclicTimeout$Wakeup.run(CyclicTimeout.java:282) ~[?:?]
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) ~[?:?]
        at java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[?:?]
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304) ~[?:?]
        ... 3 more
2021-04-28 07:27:05.369 [DEBUG] [ig.internal.data.TankerkoenigService] - getTankerkoenigDetailResult IOException:
java.io.IOException: java.util.concurrent.TimeoutException: Total timeout 5000 ms elapsed
        at org.openhab.core.io.net.http.HttpUtil.executeUrlAndGetReponse(HttpUtil.java:260) ~[bundleFile:?]
        at org.openhab.core.io.net.http.HttpUtil.executeUrl(HttpUtil.java:156) ~[bundleFile:?]
        at org.openhab.core.io.net.http.HttpUtil.executeUrl(HttpUtil.java:131) ~[bundleFile:?]
        at org.openhab.binding.tankerkoenig.internal.data.TankerkoenigService.getResponseString(TankerkoenigService.java:73) ~[bundleFile:?]
        at org.openhab.binding.tankerkoenig.internal.data.TankerkoenigService.getTankerkoenigDetailResult(TankerkoenigService.java:96) [bundleFile:?]
        at org.openhab.binding.tankerkoenig.internal.data.TankerkoenigService.getStationDetailData(TankerkoenigService.java:54) [bundleFile:?]
        at org.openhab.binding.tankerkoenig.internal.handler.StationHandler.updateDetailData(StationHandler.java:175) [bundleFile:?]
        at org.openhab.binding.tankerkoenig.internal.handler.StationHandler.lambda$0(StationHandler.java:98) [bundleFile:?]
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) [?:?]
        at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305) [?:?]
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305) [?:?]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]
        at java.lang.Thread.run(Thread.java:834) [?:?]
Caused by: java.util.concurrent.TimeoutException: Total timeout 5000 ms elapsed
        at org.eclipse.jetty.client.HttpDestination$TimeoutTask.onTimeoutExpired(HttpDestination.java:529) ~[?:?]
        at org.eclipse.jetty.io.CyclicTimeout$Wakeup.run(CyclicTimeout.java:282) ~[?:?]
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) ~[?:?]
        at java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[?:?]
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304) ~[?:?]
        ... 3 more

==> /var/log/openhab/events.log <==
2021-04-28 07:27:05.387 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'tankerkoenig:station:Tankpreise:Station1' changed from UNKNOWN to OFFLINE (COMMUNICATION_ERROR): No valid response from the web-request!
2021-04-28 07:27:05.391 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'tankerkoenig:station:Tankpreise:Station2' changed from UNKNOWN to OFFLINE (COMMUNICATION_ERROR): No valid response from the web-request!

Best regards,
Reinhard

Hi Reinhard,

did you by any chance resolve the issue? I have them same problem since I redid the hole Binding.

Kind Regards,
Markus

Welcome to the openHAB forum.

Could you post the error message you receice?
Did you try to get response from a manual http request?
Others don’t report this issue, so I don’t think it is a code problem.

Thank you very much!
Here is the whole error from the debug log:

2022-07-26 22:16:43.193 [DEBUG] [ig.internal.data.TankerkoenigService] - getTankerkoenigDetailResult IOException: 
java.io.IOException: java.util.concurrent.TimeoutException: Total timeout 5000 ms elapsed
	at org.openhab.core.io.net.http.HttpUtil.executeUrlAndGetReponse(HttpUtil.java:260) ~[?:?]
	at org.openhab.core.io.net.http.HttpUtil.executeUrl(HttpUtil.java:155) ~[?:?]
	at org.openhab.core.io.net.http.HttpUtil.executeUrl(HttpUtil.java:130) ~[?:?]
	at org.openhab.binding.tankerkoenig.internal.data.TankerkoenigService.getResponseString(TankerkoenigService.java:73) ~[?:?]
	at org.openhab.binding.tankerkoenig.internal.data.TankerkoenigService.getTankerkoenigDetailResult(TankerkoenigService.java:96) ~[?:?]
	at org.openhab.binding.tankerkoenig.internal.data.TankerkoenigService.getStationDetailData(TankerkoenigService.java:54) ~[?:?]
	at org.openhab.binding.tankerkoenig.internal.handler.StationHandler.updateDetailData(StationHandler.java:175) ~[?:?]
	at org.openhab.binding.tankerkoenig.internal.handler.StationHandler.lambda$0(StationHandler.java:98) ~[?:?]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) [?:?]
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305) [?:?]
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305) [?:?]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]
	at java.lang.Thread.run(Thread.java:829) [?:?]
Caused by: java.util.concurrent.TimeoutException: Total timeout 5000 ms elapsed
	at org.eclipse.jetty.client.HttpDestination$RequestTimeouts.onExpired(HttpDestination.java:567) ~[?:?]
	at org.eclipse.jetty.client.HttpDestination$RequestTimeouts.onExpired(HttpDestination.java:550) ~[?:?]
	at org.eclipse.jetty.io.CyclicTimeouts.onTimeoutExpired(CyclicTimeouts.java:110) ~[?:?]
	at org.eclipse.jetty.io.CyclicTimeouts.access$100(CyclicTimeouts.java:50) ~[?:?]
	at org.eclipse.jetty.io.CyclicTimeouts$Timeouts.onTimeoutExpired(CyclicTimeouts.java:196) ~[?:?]
	at org.eclipse.jetty.io.CyclicTimeout$Wakeup.run(CyclicTimeout.java:298) ~[?:?]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) ~[?:?]
	at java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[?:?]
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304) ~[?:?]
	... 3 more
2022-07-26 22:16:43.221 [DEBUG] [ig.internal.data.TankerkoenigService] - getTankerkoenigDetailResult IOException: 
java.io.IOException: java.util.concurrent.TimeoutException: Total timeout 5000 ms elapsed
	at org.openhab.core.io.net.http.HttpUtil.executeUrlAndGetReponse(HttpUtil.java:260) ~[?:?]
	at org.openhab.core.io.net.http.HttpUtil.executeUrl(HttpUtil.java:155) ~[?:?]
	at org.openhab.core.io.net.http.HttpUtil.executeUrl(HttpUtil.java:130) ~[?:?]
	at org.openhab.binding.tankerkoenig.internal.data.TankerkoenigService.getResponseString(TankerkoenigService.java:73) ~[?:?]
	at org.openhab.binding.tankerkoenig.internal.data.TankerkoenigService.getTankerkoenigDetailResult(TankerkoenigService.java:96) ~[?:?]
	at org.openhab.binding.tankerkoenig.internal.data.TankerkoenigService.getStationDetailData(TankerkoenigService.java:54) ~[?:?]
	at org.openhab.binding.tankerkoenig.internal.handler.StationHandler.updateDetailData(StationHandler.java:175) ~[?:?]
	at org.openhab.binding.tankerkoenig.internal.handler.StationHandler.lambda$0(StationHandler.java:98) ~[?:?]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) [?:?]
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305) [?:?]
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305) [?:?]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]
	at java.lang.Thread.run(Thread.java:829) [?:?]
Caused by: java.util.concurrent.TimeoutException: Total timeout 5000 ms elapsed
	at org.eclipse.jetty.client.HttpDestination$RequestTimeouts.onExpired(HttpDestination.java:567) ~[?:?]
	at org.eclipse.jetty.client.HttpDestination$RequestTimeouts.onExpired(HttpDestination.java:550) ~[?:?]
	at org.eclipse.jetty.io.CyclicTimeouts.onTimeoutExpired(CyclicTimeouts.java:110) ~[?:?]
	at org.eclipse.jetty.io.CyclicTimeouts.access$100(CyclicTimeouts.java:50) ~[?:?]
	at org.eclipse.jetty.io.CyclicTimeouts$Timeouts.onTimeoutExpired(CyclicTimeouts.java:196) ~[?:?]
	at org.eclipse.jetty.io.CyclicTimeout$Wakeup.run(CyclicTimeout.java:298) ~[?:?]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) ~[?:?]
	at java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[?:?]
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304) ~[?:?]
	... 3 more

What exactly do you mean by manual http request? My API seems to be fine.

I can return that question. What are you referring to here?

What makes you think that your API is OK? Did you check that outside of openHAB?

Did you try to disable/enable the bridge in order to restart the service?

My recent request for the log from Tankerkönig returned nothing as well, however I am not getting any errors.

Additionally I could check wether the your used StationIDs are causing this problem. Such a check would need to wait until I am back home. I"m hestitating to do such on a small smartphone

I though that was the point you were meaning.
I asked them about the API and they said its not blocked or anything.

But your point about stationIDs might be right. I will try with a few others.

If you asked them (Tankerkönig), we know your API is not blocked!

I’d try the restart of service as well.