Text: "Loading takes very long" on Android

Created on 30 Mar 2020  路  10Comments  路  Source: nextcloud/text

Describe the bug
When I try to open a markdown file to edit, it loads forever and shows a message saying "Loading takes very long", with a message to go back.

To Reproduce

  1. tap on a file to edit
  2. wait
  3. the message appears on the bottom

Expected behavior
some sort of editor appears

Screenshots
Screenshot_20200329-230405_Nextcloud

Client details:

  • OS: Android
  • Browser: Android app
  • Version: 3.11.0 RC2
  • Device: Pocophone
bug

Most helpful comment

Hi,

I had exactly the same issue. My Nextcloud setup was with a self-signed certificate directly on the IP address on the server (ie URL was https://192.168.x.y). Then I changed to use a domain name with a certificate from Let's Encrypt, and the issue disappeared right away (I simply removed and readded my account in the Android app to change the URL).

Note that I didn't change anything else, it is the same server and the same Nextcloud setup, I simply changed the overwrite.cli.url and trusted_domains variable in Nextcloud config file.

Hope this helps.

All 10 comments

Are there any interesting things happening in your nextcloud or webserver access/error logs?

@tobiasKaminsky Do we have any way to debug this properly on the Android side?

@tobiasKaminsky Do we have any way to debug this properly on the Android side?

The only way might be to have a logcat running, or on RC/dev there are logs within settings.

logs-2020-03-31-17-10-35.zip
Here are logs for "TextEditorWebView" but it doesn't seem very interesting
edit: you can see how there's some time between me attempting to edit, and me pressing the "back" button on the message error when it appears after 20 seconds or so. Note that I tried just leaving it be, and after minutes of waiting nothing new happens.
logs-2020-03-31-17-20-46.zip
there's also this, but I can't find anything interesting. filtering by "cloud"

Can you create us a test account, test if the problem occurs also there and if so send the credentials to tobias at nextcloud dot com with a reference to this issue?

Hi,

I had exactly the same issue. My Nextcloud setup was with a self-signed certificate directly on the IP address on the server (ie URL was https://192.168.x.y). Then I changed to use a domain name with a certificate from Let's Encrypt, and the issue disappeared right away (I simply removed and readded my account in the Android app to change the URL).

Note that I didn't change anything else, it is the same server and the same Nextcloud setup, I simply changed the overwrite.cli.url and trusted_domains variable in Nextcloud config file.

Hope this helps.

I had the same issue and can confirm that it's gone since I switched from a self-signed certificate to a certificate from Let's Encrypt. Thank you @Zkral for the "workaround".

@tobiasKaminsky Could that be a case that is not catched in the android code part? I guess then the webview just fails to load and the postmessage never hits the app.

What case could it be?

The webview not loading due to a self-signed certificate as written by https://github.com/nextcloud/text/issues/742#issuecomment-748188470

Similarly, _some_ .md's don't load in Android for editing, others do. I tried removing links in them and copying them, but their copy also doesn't open for editing. They _can_ be viewed when chosen to store on the device. I have 'cpanel certificate'.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jeyca picture jeyca  路  5Comments

feutl picture feutl  路  3Comments

jancborchardt picture jancborchardt  路  6Comments

csantosb picture csantosb  路  5Comments

andynd picture andynd  路  3Comments