-
-
Notifications
You must be signed in to change notification settings - Fork 234
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Git Adapter] Possible rate-limites when using github #1599
Comments
Hello 👋 Thank you for taking the time to open this issue with floccus. I know it's frustrating when software I look forward to working with you on this issue |
Hhm, yeah, when the resource is locked, floccus retries every minute :S That doesn't go down well with rate limiting I imagine :/ |
Sadly Floccus just gave up and removed all my folders (bookmarks and open tabs from github) I now have 6 tags for floccus-locks and the repo is empty with just a readme. the content of the readme is This repository is used to syncrhonize bookmarks via [floccus](https://floccus.org/). all commit history is gone also 🙁 the only commit left is for adding the markdown |
Wut?! |
Could you send the log of that sync? |
the thing is they're multiple so I don't know which one triggered this lol |
I think I know why now, it initialized a new git repo and it did not detect that there is already a git repo
|
Yeah, it should only ever do that if the branch cannot be found... I'm gonna take that part out I guess. Can't have floccus bulldoze the entire repo. |
It was |
thank you for the prompt replies and the hot fix 🔥 |
Could it be due to the rate-limiting that it failed and "bulldozed" 😀 the repo? we can keep the try catch in #1602 but instead of initializing a new repo we can put the error into the logger, what do you think? |
The try-catch is only used to set up a new repo, so if we don't want that, the error will be caught higher up and displayed, no need to log it manually. |
Which version of floccus are you using?
5.1.0
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.
Brave Version 1.65.126 Chromium: 124.0.6367.118 (Official Build) (64-bit)
Which version of Nextcloud Bookmarks are you using? (if relevant)
N/A
Which version of Nextcloud? (if relevant)
N/A
What kind of WebDAV server are you using? (if relevant)
N/A
Describe the Bug
Github seems to heavily rate-limit the git adapater, I've setup two profile one for bookmarks and one for open tabs, and it seems there is a 15 minute limit between 2~3 requests.
Expected Behavior
I'm not sure if this is a known thing, IMO it is worth mentioning when adding a git adapter profile.
To Reproduce
Setup at least two profile, make some changes in both profile and notice the "Scheduled" appearing on both profiles for 15 minutes and it retries every so often.
Debug log provided
The text was updated successfully, but these errors were encountered: