Socket timeout when querying API


#1

Lately my app started to show a lot of: (happens 9 times out of 10)
WwnClient error: com.nestlabs.sdk.NestException: java.net.SocketTimeoutException: timeout

is there a problem on server


#2

Hi, there isn’t any connection issues with the server but if you are still having the issue with the android SDK, you might try adjusting the timeouts below, or adding a call to writeTimeout in WwnClient and see if that helps.
OkHttpClient streamingHttpClient = new OkHttpClient().newBuilder()
.connectTimeout(10, TimeUnit.SECONDS)
.readTimeout(60, TimeUnit.SECONDS)
.build();