Skip to content
This repository has been archived by the owner on Jun 15, 2022. It is now read-only.

Unable to load editor on mobile #604

Open
julianfairfax opened this issue May 1, 2022 · 20 comments · Fixed by #615
Open

Unable to load editor on mobile #604

julianfairfax opened this issue May 1, 2022 · 20 comments · Fixed by #615

Comments

@julianfairfax
Copy link

I'm using the Rich Markdown Editor on my laptop, where it works fine, but when I open a note that was written with it on my phone, it displays an error saying Unable to load Rich Markdown Editor - An unknown error occurred.

@Tellervo89
Copy link

same issue on my Android phone, only occurs with custom themes though

@julianfairfax
Copy link
Author

same issue on my Android phone, only occurs with custom themes though

So this extension works for you? Or have you just only tried custom themes?

@Tellervo89
Copy link

rich markdown editor works on my laptop with my own custom theme. On my phone, rich markdown editor does not work with the same theme, and only with preinstalled themes from Standard Notes.

@johnny243
Copy link
Contributor

johnny243 commented May 19, 2022

Hey @julianfairfax, thanks for reporting.

Have you tried reinstalling the editor and see if that fixes the issue?

@julianfairfax
Copy link
Author

Hey @julianfairfax, thanks for reporting.

Have you tried reinstalling the editor and see if that fixes the issue?

I have now. It didn't work. I'm on the 3.20 beta

@julianfairfax
Copy link
Author

Can someone else test this on their device to confirm it's not just an issue for me?

@mariobrostech
Copy link

mariobrostech commented May 22, 2022

I experienced this too, but I was able to fix it with some interesting steps:

  1. Create the note using the Rich Markdown Editor on my computer.
  2. Open the note on mobile, and observe the note failing to open with the same error message as @julianfairfax reported in this issue.
  3. Go to the main notes screen, and lock and unlock the device's screen (this was actually done as a mistake when I was trying to take a screenshot of the error, but I digress).
  4. Observe the note loading perfectly fine when re-entering it. From this point on, every note created with the Rich Markdown Editor works just fine on the first try.
  5. This can be replicated both on Android and iOS.

Not sure how helpful this is, especially considering that I'm unable to replicate the issue again, but it was certainly interesting to see how I was able to accidentally fix this.

@julianfairfax
Copy link
Author

I experienced this too, but I was able to fix it with some interesting steps:

1. Create the note using the Rich Markdown Editor on my computer.

2. Open the note on mobile, and observe the note failing to open with the same error message as @julianfairfax reported in this issue.

3. Go to the main notes screen, and lock and unlock the device's screen (this was actually done as a mistake when I was trying to take a screenshot of the error, but I digress).

4. Observe the note loading perfectly fine when re-entering it. From this point on, every note created with the Rich Markdown Editor works just fine on the first try.

5. This can be replicated both on Android and iOS.

Not sure how helpful this is, especially considering that I'm unable to replicate the issue again, but it was certainly interesting to see how I was able to accidentally fix this.

I have tried to replicate this fix multiple times, but it doesn't work for me. I hope this'll help you find a proper way to fix it though.

@Tellervo89
Copy link

I experienced this too, but I was able to fix it with some interesting steps:

1. Create the note using the Rich Markdown Editor on my computer.

2. Open the note on mobile, and observe the note failing to open with the same error message as @julianfairfax reported in this issue.

3. Go to the main notes screen, and lock and unlock the device's screen (this was actually done as a mistake when I was trying to take a screenshot of the error, but I digress).

4. Observe the note loading perfectly fine when re-entering it. From this point on, every note created with the Rich Markdown Editor works just fine on the first try.

5. This can be replicated both on Android and iOS.

Not sure how helpful this is, especially considering that I'm unable to replicate the issue again, but it was certainly interesting to see how I was able to accidentally fix this.

Did not work for me either. However, since I updated Standard Notes to version 3.20.1 that was released on May 22, 22 on F-Droid, all editors load fine with custom themes without me having to do anything at all.

@julianfairfax
Copy link
Author

I experienced this too, but I was able to fix it with some interesting steps:

1. Create the note using the Rich Markdown Editor on my computer.

2. Open the note on mobile, and observe the note failing to open with the same error message as @julianfairfax reported in this issue.

3. Go to the main notes screen, and lock and unlock the device's screen (this was actually done as a mistake when I was trying to take a screenshot of the error, but I digress).

4. Observe the note loading perfectly fine when re-entering it. From this point on, every note created with the Rich Markdown Editor works just fine on the first try.

5. This can be replicated both on Android and iOS.

Not sure how helpful this is, especially considering that I'm unable to replicate the issue again, but it was certainly interesting to see how I was able to accidentally fix this.

Did not work for me either. However, since I updated Standard Notes to version 3.20.1 that was released on May 22, 22 on F-Droid, all editors load fine with custom themes without me having to do anything at all.

This doesn't have anything to do with a custom theme. By all editors do you mean this one also works?

@Tellervo89
Copy link

Yes, the Rich Markdown Editor works. I assumed it was related to custom themes as all Standard Notes themes (e.g., solarized dark or midnight) loaded fine, and the editor only failed to load on my own themes.

@julianfairfax
Copy link
Author

I experienced this too, but I was able to fix it with some interesting steps:

1. Create the note using the Rich Markdown Editor on my computer.

2. Open the note on mobile, and observe the note failing to open with the same error message as @julianfairfax reported in this issue.

3. Go to the main notes screen, and lock and unlock the device's screen (this was actually done as a mistake when I was trying to take a screenshot of the error, but I digress).

4. Observe the note loading perfectly fine when re-entering it. From this point on, every note created with the Rich Markdown Editor works just fine on the first try.

5. This can be replicated both on Android and iOS.

Not sure how helpful this is, especially considering that I'm unable to replicate the issue again, but it was certainly interesting to see how I was able to accidentally fix this.

I have tried to replicate this fix multiple times, but it doesn't work for me. I hope this'll help you find a proper way to fix it though.

I even tried to replicate this fix on a brand new account, but it still didn't work.

@julianfairfax
Copy link
Author

Hey @julianfairfax, thanks for reporting.

Have you tried reinstalling the editor and see if that fixes the issue?

Have you or any other developer tried to or been able to replicate this issue? I doubt it's just me since I tried that new account, but no one else seems to be complaining I don't know what's wrong but I'd really appreciate any insight whatsoever as Standard Notes is entirely useless to me on mobile at this point.

@moughxyz
Copy link
Member

As a workaround you can remove the download_url property from the ext.json payload. The issue has to do with the offline editor capability of some editors. Still need to distill why.

@julianfairfax
Copy link
Author

As a workaround you can remove the download_url property from the ext.json payload. The issue has to do with the offline editor capability of some editors. Still need to distill why.

I did here: https://raw.githubusercontent.com/julianfairfax/sn-rme/master/ext.json, but now it doesn't seem to install

@moughxyz
Copy link
Member

Try using https://www.jsdelivr.com. The above response is returned by GitHub as plaintext and not JSON (check response header content-type), so it doesn't go through.

@julianfairfax
Copy link
Author

Try using https://www.jsdelivr.com. The above response is returned by GitHub as plaintext and not JSON (check response header content-type), so it doesn't go through.

I tried to put it on Listed but I can't figure out how to get it to be JSON there either.

@moughxyz
Copy link
Member

I believe you prepend this to your note before publishing:

---
metatype: json
---

@julianfairfax
Copy link
Author

As a workaround you can remove the download_url property from the ext.json payload. The issue has to do with the offline editor capability of some editors. Still need to distill why.

It works! https://listed.to/p/6zv6GtamsT

@julianfairfax
Copy link
Author

As a workaround you can remove the download_url property from the ext.json payload. The issue has to do with the offline editor capability of some editors. Still need to distill why.

This means I can't edit my messages with this editor if I'm offline though.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
5 participants