Okhttp3 SocketTimeOutException

I am using the CMAClient in code to update Contentful with content from an API. I keep getting the the following exception. This application will need to run nightly and ideally without any supervision but this exception will not help.

Is there a way to increase the timeout? If not, any suggestions to work around this issue would be welcome.

With Thanks,

Zul

Caused by: java.net.SocketTimeoutException: timeout
at okhttp3.internal.http2.Http2Stream$StreamTimeout.newTimeoutException(Http2Stream.java:593)
at okhttp3.internal.http2.Http2Stream$StreamTimeout.exitAndThrowIfTimedOut(Http2Stream.java:601)
at okhttp3.internal.http2.Http2Stream.takeResponseHeaders(Http2Stream.java:146)
at okhttp3.internal.http2.Http2Codec.readResponseHeaders(Http2Codec.java:120)