Appcenter: [AppCenter] java.net.SocketTimeoutException: SSL handshake timed out

Created on 9 Aug 2019  路  5Comments  路  Source: microsoft/appcenter

I my xamarin.forms app (android), my crashes does not appear in appcenter web console. I just tested it by generating test crash.
I see a lot of errors in the log file:

[AppCenter] Try #1 failed and will be retried in 8899 ms
[AppCenter] java.net.SocketTimeoutException: SSL handshake timed out
[AppCenter]     at com.android.org.conscrypt.NativeCrypto.SSL_do_handshake(Native Method)
[AppCenter]     at com.android.org.conscrypt.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:357)
[AppCenter]     at com.android.okhttp.Connection.connectTls(Connection.java:235)
[AppCenter]     at com.android.okhttp.Connection.connectSocket(Connection.java:199)
[AppCenter]     at com.android.okhttp.Connection.connect(Connection.java:172)
[AppCenter]     at com.android.okhttp.Connection.connectAndSetOwner(Connection.java:367)
[AppCenter]     at com.android.okhttp.OkHttpClient$1.connectAndSetOwner(OkHttpClient.java:130)
[AppCenter]     at com.android.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:329)
[AppCenter]     at com.android.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:246)
[AppCenter]     at com.android.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:457)
[AppCenter]     at com.android.okhttp.internal.huc.HttpURLConnectionImpl.connect(HttpURLConnectionImpl.java:126)
[AppCenter]     at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getOutputStream(HttpURLConnectionImpl.java:257)
[AppCenter]     at com.android.okhttp.internal.huc.DelegatingHttpsURLConnection.getOutputStream(DelegatingHttpsURLConnection.java:218)
[AppCenter]     at com.android.okhttp.internal.huc.HttpsURLConnectionImpl.getOutputStream(HttpsURLConnectionImpl.java)
[AppCenter]     at com.microsoft.appcenter.http.DefaultHttpClientCallTask.doHttpCall(DefaultHttpClientCallTask.java:277)
[AppCenter]     at com.microsoft.appcenter.http.DefaultHttpClientCallTask.doInBackground(DefaultHttpClientCallTask.java:328)
[AppCenter]     at com.microsoft.appcenter.http.DefaultHttpClientCallTask.doInBackground(DefaultHttpClientCallTask.java:47)
[AppCenter]     at android.os.AsyncTask$2.call(AsyncTask.java:305)
[AppCenter]     at java.util.concurrent.FutureTask.run(FutureTask.java:237)
[AppCenter]     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
[AppCenter]     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
[AppCenter]     at java.lang.Thread.run(Thread.java:761)

Appcenter sttus page says "All Systems Operational"
https://kkc10kz2t8yc.statuspage.io/

Most helpful comment

I have the same problem on xamarin forms (android). I use Analytics and Crashes moduls.
I've tried different version on nuget, the problem is the same.
08-09 15:07:44.488 W/AppCenter(28658): Try #1 failed and will be retried in 8583 ms
08-09 15:07:44.488 W/AppCenter(28658): java.net.SocketTimeoutException: SSL handshake timed out

08-09 15:08:53.246 W/AppCenter(28658): Try #2 failed and will be retried in 190071 ms
08-09 15:08:53.246 W/AppCenter(28658): java.net.SocketTimeoutException: failed to connect to in.appcenter.ms/104.208.240.18 (port 443) from /192.168.43.245 (port 43578) after 60000ms

All 5 comments

I have the same problem on xamarin forms (android). I use Analytics and Crashes moduls.
I've tried different version on nuget, the problem is the same.
08-09 15:07:44.488 W/AppCenter(28658): Try #1 failed and will be retried in 8583 ms
08-09 15:07:44.488 W/AppCenter(28658): java.net.SocketTimeoutException: SSL handshake timed out

08-09 15:08:53.246 W/AppCenter(28658): Try #2 failed and will be retried in 190071 ms
08-09 15:08:53.246 W/AppCenter(28658): java.net.SocketTimeoutException: failed to connect to in.appcenter.ms/104.208.240.18 (port 443) from /192.168.43.245 (port 43578) after 60000ms

Hello,

Can you reproduce the issue? This looks related to this past incident that made our ingestion endpoint unavailable for a short moment.

SDK are expected to keep logs on local storage and send them at a later time.

I am getting this issue 100% on startup of a Xamarin Android project consuming the App Center module

@DaveBrickley please check the date and time on the device (it's required for https connection). If it's still the problem, please open support ticket on the portal. Thanks

@MatkovIvan Date and time on the physical device appear to be correc

Was this page helpful?
0 / 5 - 0 ratings

Related issues

comply365dev picture comply365dev  路  4Comments

KSemenenko picture KSemenenko  路  3Comments

chriskellor picture chriskellor  路  3Comments

master-lincoln picture master-lincoln  路  3Comments

patrickdoodyIRL picture patrickdoodyIRL  路  3Comments