' java.net.ConnectException: Failed to connect to /192.168.0.10:8000
' at anywheresoftware.b4h.okhttp.OkHttpClientWrapper.executeWithTimeout(OkHttpClientWrapper.java:156)
hc.ExecuteCredentials(job.GetRequest, taskCounter, job.Username, job.Password)
When there is no network connection or there is a problem with network connection, OKHttpClient hc.ExecuteCredentials doesn't genertate event hc_ResponseError, but raises exception instead. Try catch construction doesn't intercept the exception.
I tried to reproduce error conditions, but failed.
There is now exception in log "java.net.UnknownHostException: ...", and fortunately hc_ResponseError is raised with Reason = java.net.UnknownHostException.
Finally, I managed to reproduce error conditions (Network presensts, host is down) and got exception "java.net.ConnectException: Failed to connect to ...".
And again, hc_ResponseError is raised with Reason = java.net.ConnectException: Failed to connect to.
So there is no problem in library. It seems that I did something wrong in my code.