shiori icon indicating copy to clipboard operation
shiori copied to clipboard

PUT request to /api/v1/bookmarks/cache takes too long

Open DesarrolloAntonio opened this issue 1 month ago • 2 comments

Data

  • Shiori version: 1.6.3

Describe the bug / actual behavior

I have an Android app that interacts with Shiori's API. When I attempt to update a bookmark archive, the request takes an excessively long time, often several minutes when is a large bookmark.

Endpoint: PUT http://192.168.1.68:18080/api/v1/bookmarks/cache

{
   "create_archive": true,
   "create_ebook": true,
   "ids": [37],
   "keep_metadata": true,
   "skip_exist": false
}

Initially, the timeout in android app was set to 30 seconds. I increased it to 50 seconds, but there are still bookmarks that I cannot update because the request times out.

It seems that the timeout issue is related to the length of the bookmark. Here is an example of large bookmark that causes this issue. large bookmark

Expected behavior

The server should return the bookmark information promptly while creating the archive in the background.

To Reproduce

Steps to reproduce the behavior:

  1. Add large bookmark
  2. Update archive

DesarrolloAntonio avatar May 21 '24 15:05 DesarrolloAntonio