ironjan / metal-only

Metal Only Android App
3 stars 1 forks source link

SocketTimeoutException reported via PlayStore #107

Closed ironjan closed 7 years ago

ironjan commented 7 years ago

Reported on 2 devices for 0.6.7

org.springframework.web.client.ResourceAccessException: 
  at org.springframework.web.client.RestTemplate.doExecute (RestTemplate.java:491)
  at org.springframework.web.client.RestTemplate.execute (RestTemplate.java:439)
  at org.springframework.web.client.RestTemplate.exchange (RestTemplate.java:415)
  at com.github.ironjan.metalonly.client_library.MetalOnlyAPI_.getStats (MetalOnlyAPI_.java:49)
  at com.github.ironjan.metalonly.client_library.MetalOnlyAPIWrapper.getStats (MetalOnlyAPIWrapper.kt:55)
  at com.codingspezis.android.metalonly.player.StreamControlActivity$2.run (StreamControlActivity.java:195)
  at java.lang.Thread.run (Thread.java:818)
Caused by: java.net.SocketTimeoutException: 
  at com.android.org.conscrypt.NativeCrypto.SSL_do_handshake (Native Method)
  at com.android.org.conscrypt.OpenSSLSocketImpl.startHandshake (OpenSSLSocketImpl.java:329)
  at com.android.okhttp.internal.http.SocketConnector.connectTls (SocketConnector.java:103)
  at com.android.okhttp.Connection.connect (Connection.java:167)
  at com.android.okhttp.Connection.connectAndSetOwner (Connection.java:209)
  at com.android.okhttp.OkHttpClient$1.connectAndSetOwner (OkHttpClient.java:128)
  at com.android.okhttp.internal.http.HttpEngine.nextConnection (HttpEngine.java:352)
  at com.android.okhttp.internal.http.HttpEngine.connect (HttpEngine.java:341)
  at com.android.okhttp.internal.http.HttpEngine.sendRequest (HttpEngine.java:259)
  at com.android.okhttp.internal.huc.HttpURLConnectionImpl.execute (HttpURLConnectionImpl.java:495)
  at com.android.okhttp.internal.huc.HttpURLConnectionImpl.connect (HttpURLConnectionImpl.java:133)
  at com.android.okhttp.internal.huc.DelegatingHttpsURLConnection.connect (DelegatingHttpsURLConnection.java:89)
  at com.android.okhttp.internal.huc.HttpsURLConnectionImpl.connect (HttpsURLConnectionImpl.java)
  at org.springframework.http.client.SimpleBufferingClientHttpRequest.executeInternal (SimpleBufferingClientHttpRequest.java:72)
  at org.springframework.http.client.AbstractBufferingClientHttpRequest.executeInternal (AbstractBufferingClientHttpRequest.java:46)
  at org.springframework.http.client.AbstractClientHttpRequest.execute (AbstractClientHttpRequest.java:63)
  at org.springframework.web.client.RestTemplate.doExecute (RestTemplate.java:476)
ironjan commented 7 years ago

Same cause as #105