element-hq / riot-android

A glossy Matrix collaboration client for Android
Apache License 2.0
1.4k stars 394 forks source link

Android 10 Upload files fails sometimes (3/4) #3471

Open ludoz opened 4 years ago

ludoz commented 4 years ago

Hi,

Yesterday my phone upgrade to Android10.

In Riot Im Android, uploading files failed 3 times on 4. When it failed i have a message "Failed to connect to myownhomeserver.org/Public_IP:443" Back to Android9 the problem disappear.

Context : i run my own homeserver, Android 10 on Galaxy A70. Here is the log in logcat :

E/InputDispatcher: Window handle Window{8813d88 u0 im.vector.app/im.vector.activity.VectorRoomActivity} has no registered input channel

E/MXMediaUploadWorkerTask: doInBackground ; failed with error class java.net.ConnectException - Failed to connect to myownhomeserver.org/Public_IP:443 java.net.ConnectException: Failed to connect to myownhomeserver.org/Public_IP:443 at com.android.okhttp.internal.io.RealConnection.connectSocket(RealConnection.java:1409) at com.android.okhttp.internal.io.RealConnection.connect(RealConnection.java:1359) at com.android.okhttp.internal.http.StreamAllocation.findConnection(StreamAllocation.java:221) at com.android.okhttp.internal.http.StreamAllocation.findHealthyConnection(StreamAllocation.java:144) at com.android.okhttp.internal.http.StreamAllocation.newStream(StreamAllocation.java:106) at com.android.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:400) at com.android.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:333) at com.android.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:483) at com.android.okhttp.internal.huc.HttpURLConnectionImpl.connect(HttpURLConnectionImpl.java:135) at com.android.okhttp.internal.huc.DelegatingHttpsURLConnection.connect(DelegatingHttpsURLConnection.java:90) at com.android.okhttp.internal.huc.HttpsURLConnectionImpl.connect(HttpsURLConnectionImpl.java:30) at org.matrix.androidsdk.db.MXMediaUploadWorkerTask.doInBackground(MXMediaUploadWorkerTask.java:339) at org.matrix.androidsdk.db.MXMediaUploadWorkerTask.doInBackground(MXMediaUploadWorkerTask.java:59) at android.os.AsyncTask$3.call(AsyncTask.java:378) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) at java.lang.Thread.run(Thread.java:919)

Can you help me ?