Suwayomi / Suwayomi-Server

A rewrite of Tachiyomi for the Desktop
Mozilla Public License 2.0
3.73k stars 196 forks source link

[Bug] Can't mark previous as read if selected chapter is larger than 100 #909

Open boydaihungst opened 3 months ago

boydaihungst commented 3 months ago

Device information

Steps to reproduce

  1. Add new manga, with more than 100 chapters, from any source to library
  2. Open the manga
  3. Click the Options button on the right side of latest chapter
  4. After menu context is shown up, click Mark previous as read
  5. An error dialog with text Could not mark chapters as read is shown up.

Expected behavior

All chapters behind the selected chapter should be marked as read.

Actual behavior

Currently, it only works if the selected chapter is less than 100. Tested in localhost.

Other details

Here is the GraphQL queries and responses. less_than_100_chapter_request.json less_than_100_chapter_response.json more_than_100_chapter_request.json more_than_100_chapter_response.json

Log said that I don't have permission, but I do. image

Robonau commented 3 months ago

i can't reproduce the issue tested setting 261 chapters read and unread, worked fine have you done anything special/non-standard (limiting memory usage, behind a reverse proxy, etc)

boydaihungst commented 3 months ago

No, I didn't run it through nginx. I use this url http://192.168.1.100:4567/. Also, my server has UFW firewall, but allow all incoming ports from my client IP: Anywhere ALLOW IN 192.168.1.4, outgoing is allowed by default (didn't use any VPN). Tested on both Chrome and Firefox still has this problem. As far as I know, there isn't any memory limited by default (I don't touch anything related to memory, other process can reach 2-3 GB without any issue). I follow this guide to install suwayomi-server #896. Even openjdk-8-jre is new installed.

boydaihungst commented 3 months ago

Feel free to close this issue if you still can't reproduce it. 👍

taos15 commented 3 months ago

I couldn't reproduce either, my PR that update the local read database to match the tracker make requests to set chapters to read/unread, and it is working find with martial peak (over 3k chapters).