[GH-ISSUE #1804] Syncing failed with E019: HTTP status 400. Failed PUT request. #1206

Closed
opened 2026-02-25 22:39:19 +03:00 by kerem · 23 comments
Owner

Originally created by @ImintA2 on GitHub (Dec 19, 2024).
Original GitHub issue: https://github.com/floccusaddon/floccus/issues/1804

Which version of floccus are you using?

5.4.0

How many bookmarks do you have, roughly?

2k

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

No

Sync method

Nextcloud Bookmarks

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

Catsxp 4.11.3

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

15.0.4

Which version of Nextcloud? (if relevant)

30.0.4

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

No response

Describe the Bug

I started encountering this error randomly a few days ago, without changing any settings manually other than leaving everything on auto-update.

When the error occurs, I have to delete the bookmarks causing the issue (on the Nextcloud server) to get syncing to work again. However, tracking down the problematic bookmarks is often difficult, so I usually end up deleting all of them and starting over. Unfortunately, this solution only works for a few syncs before the same error reappears.

Logs:
floccus-5.4.0-2024-12-19-redacted.log

What server configurations or additional logs should I check to help diagnose this issue?

Expected Behavior

Sync should complete without error.

To Reproduce

Reproducing the issue is challenging because it occurs randomly after some time.
I have a large number of duplicate bookmarks, which result from syncing tabs and bookmarks across multiple PCs—if that information is relevant.

Debug log provided

  • I have provided a debug log file
Originally created by @ImintA2 on GitHub (Dec 19, 2024). Original GitHub issue: https://github.com/floccusaddon/floccus/issues/1804 ### Which version of floccus are you using? 5.4.0 ### How many bookmarks do you have, roughly? 2k ### Are you using other means to sync bookmarks in parallel to floccus? No ### Sync method Nextcloud Bookmarks ### Which browser are you using? In case you are using the phone App, specify the Android or iOS version and device please. Catsxp 4.11.3 ### Which version of Nextcloud Bookmarks are you using? (if relevant) 15.0.4 ### Which version of Nextcloud? (if relevant) 30.0.4 ### What kind of WebDAV server are you using? (if relevant) _No response_ ### Describe the Bug I started encountering this error randomly a few days ago, without changing any settings manually other than leaving everything on auto-update. When the error occurs, I have to delete the bookmarks causing the issue (on the Nextcloud server) to get syncing to work again. However, tracking down the problematic bookmarks is often difficult, so I usually end up deleting all of them and starting over. Unfortunately, this solution only works for a few syncs before the same error reappears. Logs: [floccus-5.4.0-2024-12-19-redacted.log](https://github.com/user-attachments/files/18199775/floccus-5.4.0-2024-12-19-redacted.log) What server configurations or additional logs should I check to help diagnose this issue? ### Expected Behavior Sync should complete without error. ### To Reproduce Reproducing the issue is challenging because it occurs randomly after some time. I have a large number of duplicate bookmarks, which result from syncing tabs and bookmarks across multiple PCs—if that information is relevant. ### Debug log provided - [X] I have provided a debug log file
Author
Owner

@github-actions[bot] commented on GitHub (Dec 19, 2024):

Hello 👋

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 a few years ago, 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!
To continue the development and maintenance of this project in a sustainable way it is expected that you donate to the project when opening a ticket,
if you're not a donor already. You can find donation options at https://floccus.org/donate/. Thank you!

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 Nextcloud 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 💙

<!-- gh-comment-id:2554664611 --> @github-actions[bot] commented on GitHub (Dec 19, 2024): 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 a few years ago, 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! To continue the development and maintenance of this project in a sustainable way it is expected that you donate to the project when opening a ticket, if you're not a donor already. You can find donation options at <https://floccus.org/donate/>. Thank you! 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 Nextcloud 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:
Author
Owner

@marcelklehr commented on GitHub (Dec 21, 2024):

I believe the offending bookmark seems to have the ID 10698 on the server, you can check it out at https://<yournextclouddomain>/index.php/apps/bookmarks/bookmarks/10698

(It could also be 10794 or 10789, but I hope this helps to narrow it down. In the next release the error message will contain the offending bookmark)

<!-- gh-comment-id:2558079888 --> @marcelklehr commented on GitHub (Dec 21, 2024): I believe the offending bookmark seems to have the ID 10698 on the server, you can check it out at `https://<yournextclouddomain>/index.php/apps/bookmarks/bookmarks/10698` (It could also be `10794` or `10789`, but I hope this helps to narrow it down. In the next release the error message will contain the offending bookmark)
Author
Owner

@ImintA2 commented on GitHub (Dec 21, 2024):

Thanks for the response! The problem is that it seems to be caused by different, random bookmarks every time this happens, and I don't know how to find out why.
I think I'm going to do a clean reinstall of Nextcloud Bookmarks app to see if that helps. Maybe the database was corrupted or something.

<!-- gh-comment-id:2558084563 --> @ImintA2 commented on GitHub (Dec 21, 2024): Thanks for the response! The problem is that it seems to be caused by different, random bookmarks every time this happens, and I don't know how to find out why. I think I'm going to do a clean reinstall of Nextcloud Bookmarks app to see if that helps. Maybe the database was corrupted or something.
Author
Owner

@marcelklehr commented on GitHub (Dec 21, 2024):

I don't think reinstalling will help. You can try clearing the trash bin in the app, sometimes that causes issues.

<!-- gh-comment-id:2558087689 --> @marcelklehr commented on GitHub (Dec 21, 2024): I don't think reinstalling will help. You can try clearing the trash bin in the app, sometimes that causes issues.
Author
Owner

@marcelklehr commented on GitHub (Dec 21, 2024):

Status 400 can be caused by invalid URLs, reaching the upper limit of allowed amount of bookmarks, or it can happen in rare occasions when there is a duplicate somewhere else of the same URL like in the trashbin, that's why the clearing of the trashbin may help.

<!-- gh-comment-id:2558088136 --> @marcelklehr commented on GitHub (Dec 21, 2024): Status 400 can be caused by invalid URLs, reaching the upper limit of allowed amount of bookmarks, or it can happen in rare occasions when there is a duplicate somewhere else of the same URL like in the trashbin, that's why the clearing of the trashbin may help.
Author
Owner

@ImintA2 commented on GitHub (Dec 21, 2024):

I've definitely noticed that duplicate bookmarks have a high chance of causing the problem I've encountered. Thanks for the advice!
I'll close the issue for now, as I think it requires more observation, and the root cause might lie with Nextcloud Bookmarks.

<!-- gh-comment-id:2558090401 --> @ImintA2 commented on GitHub (Dec 21, 2024): I've definitely noticed that duplicate bookmarks have a high chance of causing the problem I've encountered. Thanks for the advice! I'll close the issue for now, as I think it requires more observation, and the root cause might lie with Nextcloud Bookmarks.
Author
Owner

@marcelklehr commented on GitHub (Dec 21, 2024):

No need to close, we can move it to Nextcloud Bookmarks once we know the cause (I'm maintainer of that as well :) )

<!-- gh-comment-id:2558091379 --> @marcelklehr commented on GitHub (Dec 21, 2024): No need to close, we can move it to Nextcloud Bookmarks once we know the cause (I'm maintainer of that as well :) )
Author
Owner

@ImintA2 commented on GitHub (Dec 21, 2024):

I see! I'll let you know if I find anything new that might be helpful then.
(Just to recap: moving the problematic bookmarks to the trash bin and then permanently deleting them helps solve the issue temporarily—until it randomly happens again.)

<!-- gh-comment-id:2558093841 --> @ImintA2 commented on GitHub (Dec 21, 2024): I see! I'll let you know if I find anything new that might be helpful then. (Just to recap: moving the problematic bookmarks to the trash bin and then permanently deleting them helps solve the issue temporarily—until it randomly happens again.)
Author
Owner

@marcelklehr commented on GitHub (Dec 21, 2024):

If you are not afraid of some debugging, you can try the following:

Firefox

  • Go to about:debugging
  • go to "This firefox"
  • click on Inspect button next to floccus entry
  • go to the network tab in the inspector
  • trigger a sync by clicking on sync now for the account of your choice.
  • check the failing network requests

Chrome

  • Go to chrome://extensions
  • enable Developer mode
  • click on dist/html/background.html button in floccus' entry next to "Inspect views: "
  • go to the network tab in the inspector window
  • trigger a sync by clicking on sync now for the account of your choice
  • check the failing network requests
<!-- gh-comment-id:2558105017 --> @marcelklehr commented on GitHub (Dec 21, 2024): If you are not afraid of some debugging, you can try the following: #### Firefox * Go to `about:debugging` * go to "This firefox" * click on `Inspect` button next to floccus entry * go to the network tab in the inspector * trigger a sync by clicking on `sync now` for the account of your choice. * check the failing network requests #### Chrome * Go to `chrome://extensions` * enable `Developer mode` * click on `dist/html/background.html` button in floccus' entry next to "Inspect views: " * go to the network tab in the inspector window * trigger a sync by clicking on `sync now` for the account of your choice * check the failing network requests
Author
Owner

@ImintA2 commented on GitHub (Dec 21, 2024):

It's working currently so I can't do it now, but I'll definitely use the chrome devtools the next time it happens.

<!-- gh-comment-id:2558118367 --> @ImintA2 commented on GitHub (Dec 21, 2024): It's working currently so I can't do it now, but I'll definitely use the chrome devtools the next time it happens.
Author
Owner

@ImintA2 commented on GitHub (Dec 23, 2024):

So the E019: HTTP status 400. Failed PUT request. error happened again. After seeing that I then tried both Push up once and Sync Now and they're giving different errors.

Sync Now:
Log:
floccus-5.4.0-2024-12-23-redacted_sn.log
Devtools:
2024-12-23 20 53 16

Push up once:
Log:
floccus-5.4.0-2024-12-23-redacted_puo.log
Devtools:
2024-12-23 20 54 07

Some more information I've gathered and observed:

  1. I have 2 PC and 3 profiles total:
    First PC: broswer tabs and bookmarks
    Second PC: browser tabs
  2. All my profiles are set to Always upload local changes and undo changes from other browsers. Each profile is syncing to its own unique path.
  3. The issue seems to occur mostly after the second PC syncs its browser tabs, particularly when it contains URLs that are also present in the first PC's browser tabs.
  4. After trashing and deleting the problematic bookmark from Nextcloud (10667 in this case), Sync Now still doesn't work initially—it throws the same error as above. However, using Push Up Once does work. Once Push Up Once successfully completes, Sync Now can finally finish without any errors.

Let me know if you need more information!

<!-- gh-comment-id:2559705376 --> @ImintA2 commented on GitHub (Dec 23, 2024): So the `E019: HTTP status 400. Failed PUT request.` error happened again. After seeing that I then tried both `Push up once` and `Sync Now` and they're giving different errors. `Sync Now`: Log: [floccus-5.4.0-2024-12-23-redacted_sn.log](https://github.com/user-attachments/files/18229581/floccus-5.4.0-2024-12-23-redacted_sn.log) Devtools: ![2024-12-23 20 53 16](https://github.com/user-attachments/assets/08e4673a-b271-43f3-b51f-9827fa27652e) `Push up once`: Log: [floccus-5.4.0-2024-12-23-redacted_puo.log](https://github.com/user-attachments/files/18229586/floccus-5.4.0-2024-12-23-redacted_puo.log) Devtools: ![2024-12-23 20 54 07](https://github.com/user-attachments/assets/e9efe08c-bc1f-4a64-bec9-ad0fb1f6b53b) Some more information I've gathered and observed: 1. I have 2 PC and 3 profiles total: First PC: `broswer tabs` and `bookmarks` Second PC: `browser tabs` 3. All my profiles are set to `Always upload local changes and undo changes from other browsers`. Each profile is syncing to its own unique path. 4. The issue seems to occur mostly after the second PC syncs its `browser tabs`, particularly when it contains URLs that are also present in the first PC's `browser tabs`. 5. After trashing and deleting the problematic bookmark from Nextcloud (10667 in this case), `Sync Now` still doesn't work initially—it throws the same error as above. However, using `Push Up Once` does work. Once `Push Up Once` successfully completes, `Sync Now` can finally finish without any errors. Let me know if you need more information!
Author
Owner

@marcelklehr commented on GitHub (Dec 24, 2024):

Thank you! Can you scroll up for the first error to reveal the stack trace? The second error is exactly what I had suspected.

<!-- gh-comment-id:2560892900 --> @marcelklehr commented on GitHub (Dec 24, 2024): Thank you! Can you scroll up for the first error to reveal the stack trace? The second error is exactly what I had suspected.
Author
Owner

@ImintA2 commented on GitHub (Dec 24, 2024):

Oops, I didn’t have it saved, and since it’s currently working properly, I can’t reproduce it right now. I didn’t focus much on the first error because it always occurs alongside the E019 error. If it happens again, I’ll make sure to save the stack trace.

In the meantime, here’s what I’ve observed about the first error:
When the scheduled sync encounters the E019 issue, clicking Push Up Once results in the same E019 error. However, if I click Sync Now, I get a different error: Cannot read properties of undefined (reading 'bookmark').

As mentioned earlier, after resolving the problematic bookmark, I need to click Push Up Once for everything to work properly again. Otherwise, clicking Sync Now continues to result in the Cannot read properties of undefined (reading 'bookmark') error.

<!-- gh-comment-id:2561035057 --> @ImintA2 commented on GitHub (Dec 24, 2024): Oops, I didn’t have it saved, and since it’s currently working properly, I can’t reproduce it right now. I didn’t focus much on the first error because it always occurs alongside the `E019` error. If it happens again, I’ll make sure to save the stack trace. In the meantime, here’s what I’ve observed about the first error: When the scheduled sync encounters the `E019` issue, clicking `Push Up Once` results in the same `E019` error. However, if I click `Sync Now`, I get a different error: `Cannot read properties of undefined (reading 'bookmark')`. As mentioned earlier, after resolving the problematic bookmark, I need to click `Push Up Once` for everything to work properly again. Otherwise, clicking `Sync Now` continues to result in the `Cannot read properties of undefined (reading 'bookmark')` error.
Author
Owner

@ImintA2 commented on GitHub (Dec 26, 2024):

I don't see more stack trace to this Cannot read properties of undefined (reading 'bookmark') error, the screenshot I got the last time has already revealed everything (I clicked Sync Now three times so the error repeated three times).
2024-12-27 04 57 40

<!-- gh-comment-id:2563105601 --> @ImintA2 commented on GitHub (Dec 26, 2024): I don't see more stack trace to this `Cannot read properties of undefined (reading 'bookmark')` error, the screenshot I got the last time has already revealed everything (I clicked `Sync Now` three times so the error repeated three times). ![2024-12-27 04 57 40](https://github.com/user-attachments/assets/22379db6-dff7-419a-88f0-7914c2ba3853)
Author
Owner

@marcelklehr commented on GitHub (Dec 27, 2024):

Ah, I see, there's no good stack trace :( I can vaguely pinpoint where this might happen, but I don't see why it would happen :/

<!-- gh-comment-id:2563675816 --> @marcelklehr commented on GitHub (Dec 27, 2024): Ah, I see, there's no good stack trace :( I can vaguely pinpoint where this might happen, but I don't see why it would happen :/
Author
Owner

@marcelklehr commented on GitHub (Dec 27, 2024):

The good news is that I believe I have a fi for the actual E019 problem.

<!-- gh-comment-id:2563676206 --> @marcelklehr commented on GitHub (Dec 27, 2024): The good news is that I believe I have a fi for the actual E019 problem.
Author
Owner

@ImintA2 commented on GitHub (Dec 27, 2024):

Thank you so much!
I’m not too worried about it since the Cannot read properties of undefined (reading 'bookmark') error always appears alongside the E019 issue anyway. So, once the E019 issue is resolved, that error should disappear as well.

<!-- gh-comment-id:2563682930 --> @ImintA2 commented on GitHub (Dec 27, 2024): Thank you so much! I’m not too worried about it since the `Cannot read properties of undefined (reading 'bookmark')` error always appears alongside the `E019` issue anyway. So, once the `E019` issue is resolved, that error should disappear as well.
Author
Owner

@marcelklehr commented on GitHub (Dec 27, 2024):

I've published an alpha version for you to try, if you can: https://github.com/floccusaddon/floccus/releases/tag/v5.4.2-alpha.1

<!-- gh-comment-id:2563683446 --> @marcelklehr commented on GitHub (Dec 27, 2024): I've published an alpha version for you to try, if you can: https://github.com/floccusaddon/floccus/releases/tag/v5.4.2-alpha.1
Author
Owner

@ImintA2 commented on GitHub (Dec 27, 2024):

Sure! I'm now running v5.4.2-alpha in dev mode. I'll report back if I encounter any issues.

<!-- gh-comment-id:2563689967 --> @ImintA2 commented on GitHub (Dec 27, 2024): Sure! I'm now running v5.4.2-alpha in dev mode. I'll report back if I encounter any issues.
Author
Owner

@marcelklehr commented on GitHub (Dec 27, 2024):

Thanks a lot for your cooperation :)

<!-- gh-comment-id:2563692036 --> @marcelklehr commented on GitHub (Dec 27, 2024): Thanks a lot for your cooperation :)
Author
Owner

@ImintA2 commented on GitHub (Jan 4, 2025):

I've been running v5.4.2-alpha.1 in dev mode for a week now without any issues. I think we can close this. Now I just need to remember to switch back when it's pushed to the Chrome Store. Thanks for the fix!

<!-- gh-comment-id:2571402023 --> @ImintA2 commented on GitHub (Jan 4, 2025): I've been running v5.4.2-alpha.1 in dev mode for a week now without any issues. I think we can close this. Now I just need to remember to switch back when it's pushed to the Chrome Store. Thanks for the fix!
Author
Owner

@marcelklehr commented on GitHub (Jan 5, 2025):

Awesome, thank you for the feedback, then I will release these changes soon

<!-- gh-comment-id:2571551843 --> @marcelklehr commented on GitHub (Jan 5, 2025): Awesome, thank you for the feedback, then I will release these changes soon
Author
Owner

@github-actions[bot] commented on GitHub (Jan 6, 2026):

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

<!-- gh-comment-id:3712586975 --> @github-actions[bot] commented on GitHub (Jan 6, 2026): This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/floccus#1206
No description provided.