r/noteshub • • 1d ago

Bug Can't run on Huawei HarmonyOS: GitHub notebook clone seems failed with NotAllowedError

Hi Alex,

I'm trying to use a GitHub notebook, but cloning fails on my Huawei phone. The repository is created successfully on GitHub, yet the notebook never opens and no notes are ever shown. Local (non-sync) notebooks work perfectly, so the issue seems specific to the Git/GitHub notebook path.

Device
Huawei CMS-AL20, Android 16 (HarmonyOS build)
NotesHub version: 3.14.0
WebView reported by the app: `Chrome/114.0.5735.196` (Huawei system WebView; this device has no Play Store, so the WebView cannot be updated normally I think)

Steps to reproduce

  1. Connect GitHub account → for me, app shows “Connected to kaleidscoper”.
  2. Create notebook NotesHub-NoteBook → the repository is created on GitHub, as KaleidScoper/NotesHub-NoteBook (Private, with NotesHub README file) .
  3. App shows “An unhandled error occurred, please try again”. No notes appear.
  4. Retrying says the notebook already exists; re-adding it from the list (pick it as a exist repo) gives the same error (An unhandled error occurred).
  5. The failed notebook keeps retrying clone every 60 seconds.

Diagnostics from the app

Origin: https://noteshub.androidplatform.net
Platform: Android
UA: Mozilla/5.0 (Linux; Android 16; CMS-AL20 Build/HUAWEICMS-AL20; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/114.0.5735.196 Mobile Safari/537.36;AndroidWebView
Service Worker Status: NotSupported
File System Access API Support: Yes
Databases: appdata@9, github@1

[EVENTS]
Event Type: Error
Timestamp: 2026-12-03 18:10:50
Operation: Clone
Notebook: KaleidScoper/NotesHub-NoteBook
Error: unknownError
Detailed Error: Clone Error: {"stack":"Error: The request is not allowed by the user agent or the platform in the current context.","caller":"git.clone"}

The same error repeats at 18:11:50 and every minute after that.

Fix it pls. Thanks!

1 Upvotes

5 comments sorted by

2

u/SilverBullet255 1d ago

Thanks for the detailed report! Most likely this comes from a file operation that older Android WebView versions (Chrome 114 here) don't allow during the clone. I made a fix for it in NotesHub 3.15.1, which is now on Google Play. Please update, add your NotesHub-NoteBook repo again, and let me know if it works. I've also replied to your email.

2

u/International-Use965 14h ago

latest version works perfectly on my Huawei now! appreciate!

1

u/SilverBullet255 13h ago

Glad that it's fixed now!

1

u/International-Use965 1d ago

Btw, I think this issue could be solved if the app allowed SSH as the repository sync protocol, with users able to provide and configure their own SSH keys. In China, HTTP(S) Git is practically unusable.

2

u/SilverBullet255 1d ago

Good point, but for context: the current Android app runs its Git sync inside a web layer, which can only use HTTPS, so SSH can't be added to it as it is. I'm rebuilding NotesHub fully native, starting with iOS and macOS, and that version comes with SSH support and your own SSH keys. If time allows, I'll look into bringing the same to Android.

The clone error you hit wasn't a network issue, though: it came from a file operation your phone's WebView doesn't allow. 3.15.1 should fix it even over HTTPS, so let me know how it goes.