floccus icon indicating copy to clipboard operation
floccus copied to clipboard

Git on android/ios doesn't work

Open mortifactor opened this issue 1 year ago • 28 comments

Which version of floccus are you using?

5.1.1

How many bookmarks do you have, roughly?

1000+

Are you using other means to sync bookmarks in parallel to floccus?

No

Sync method

Git

Which browser are you using? In case you are using the phone App, specify the Android or iOS version and device please.

Android 9 Honor 20

Which version of Nextcloud Bookmarks are you using? (if relevant)

No response

Which version of Nextcloud? (if relevant)

No response

What kind of WebDAV server are you using? (if relevant)

No response

Describe the Bug

I'm importing profile from browser, which works. But I tried creating same profile from scratch and it did not work either. Profile uses github private repository. So I have "Failed to fetch" error after sync. And if I go to settings I get blank screen. That is why I can't attach debug logs. You can see it on video below.

Expected Behavior

Well, it should sync I believe.

To Reproduce

https://github.com/floccusaddon/floccus/assets/1426349/74cceade-5eb8-4992-b9e2-f8f3ffe6322c

Debug log provided

  • [ ] I have provided a debug log file

mortifactor avatar May 12 '24 12:05 mortifactor

Hello :wave:

Thank you for taking the time to open this issue with floccus. I know it's frustrating when software causes problems. You have made the right choice to come here and open an issue to make sure your problem gets looked at and if possible solved. I'm Marcel and I created floccus and have been maintaining it ever since. I currently work for Nextcloud which leaves me with less time for side projects like this one than I used to have. I still try to answer all issues and if possible fix all bugs here, but it sometimes takes a while until I get to it. Until then, please be patient. Note also that GitHub is a place where people meet to make software better together. Nobody here is under any obligation to help you, solve your problems or deliver on any expectations or demands you may have, but if enough people come together we can collaborate to make this software better. For everyone. Thus, if you can, you could also have a look at other issues to see whether you can help other people with your knowledge and experience. If you have coding experience it would also be awesome if you could step up to dive into the code and try to fix the odd bug yourself. Everyone will be thankful for extra helping hands! One last word: If you feel, at any point, like you need to vent, this is not the place for it; you can go to the forum, to twitter or somewhere else. But this is a technical issue tracker, so please make sure to focus on the tech and keep your opinions to yourself.

I look forward to working with you on this issue Cheers :blue_heart:

github-actions[bot] avatar May 12 '24 12:05 github-actions[bot]

It's possible this is a network problem. I'll look into the settings issue.

marcelklehr avatar May 12 '24 13:05 marcelklehr

I have the same issue. Using 5.1.2. This is what I get in the android log:

Capacitor/Console: File: http://localhost/#/tree/17158905901720.4856727622664514 - Line 0 - Msg: Access to fetch at 'https://redacted.com/redactedusername/floccusbookmarks/info/refs?service=git-upload-pack' from origin 'http://localhost' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.

The same server with the browser plugin works ok. Also tried it with a github.com account and the error is the same.

babblerz avatar May 16 '24 21:05 babblerz

Ah, thank you for the extended log, @babblerz The error makes sense now. I'll look into fixing this.

marcelklehr avatar May 17 '24 05:05 marcelklehr

Fixed the settings issue. I can reproduce the CORS issue, I'll look into fixing it.

marcelklehr avatar May 17 '24 12:05 marcelklehr

Upstream blocker: https://github.com/ionic-team/capacitor/issues/7473

marcelklehr avatar May 20 '24 16:05 marcelklehr

Hello,

Just posting to follow this issue which I encounter myself too.

Thank you for your work!

dcanl avatar May 28 '24 09:05 dcanl

Similar issue. Looks like if fails to checkout the branch.

2024-05-31T16:44:21.293Z Starting sync process for account [email protected]@git.webiste.tld:bookmarks.xbel 2024-05-31T16:44:21.300Z onSyncStart: begin 2024-05-31T16:44:21.302Z (git) init 2024-05-31T16:44:21.392Z (git) fetch from remote 2024-05-31T16:44:21.810Z (git) checkout branch main 2024-05-31T16:44:21.826Z onSyncFail 2024-05-31T16:44:21.830Z Syncing failed with Failed to checkout "main" because commit ##### is not available locally. Do a git fetch to make the branch available locally. 2024-05-31T16:44:21.840Z onSyncFail

mdcayton avatar May 31 '24 16:05 mdcayton

Hi @marcelklehr any updates about this issue? Today I have installed the application and i faced this issue with the same error log.

faan11 avatar Jun 15 '24 21:06 faan11

@faan11 Sadly not, it's an upstream issue in capacitor: https://github.com/ionic-team/capacitor/issues/7473

marcelklehr avatar Jun 16 '24 10:06 marcelklehr

The upstream issue seems to have been fixed: https://github.com/ionic-team/capacitor/issues/7473#event-13444135066

bigdiff avatar Jul 10 '24 15:07 bigdiff

Yes, now we need to wait for a release from them, then this issue can be fixed :)

marcelklehr avatar Jul 10 '24 15:07 marcelklehr

Looks like a release was just made from them with the fix

Crunchbits avatar Jul 17 '24 17:07 Crunchbits

Yeah the issue has been fixed in the upstream with version v5.7.7 or v6.1.1

faan11 avatar Jul 17 '24 20:07 faan11

Mmmh, now with the latest capacitor version it just hangs on git fetch :thinking:

It seems they have more bugs in their fetchAPI implementation

marcelklehr avatar Jul 20 '24 16:07 marcelklehr

I had a similar issue (hangs with sync and hangs complete mobile) with gitea on my OnePlus Mobile running Android 14.1 but syncs smoothly on my laptop. Let me know what other details you might need for troubleshooting.

ChandraSaiKarthik avatar Oct 15 '24 15:10 ChandraSaiKarthik