Open kn-f opened 9 months ago
Hello, I don't know how you came across this bug, but it's pretty °_°. Thanks a lot for the feedback.
Hello @dokkaner , not sure how it happened, I'll do some testing in another instance, I feel it's related to workers but it's just an hypothesis. I wish I could submit a patch but my JS skills are close to zero. Thanks for the great work, I've been looking for this app for years!
Edit: and thanks a lot for your great positive attitude!
This issue strikes again. The way I found to trigger it, is to add a new manga and mark it as read without reading any chapter. This will set readProgress to 100 on manga table, which will trigger the code that searchs for the last activity on stats; but since there are not any activities related to this manga, it will fail hard.
Description
When loading Teemii pages, it tells me that I have no manga in the collection when I do have a few. Error log reports:
ERROR: getAllManga failed
(further details in the logs below)This happens because the
services.library.getMangaReadStatus
call returns null when the manga is not found instead of a manga object with null attributes.I don't know why this (the data misalignment) happened but I believe that the function should fail in a more graceful manner (i.e. setting the manga as unread) as right now it's showing empty collections.
To fix this I've run this query:
update manga set readProgress =0;
Version
0.8.2
Steps to Reproduce
I don't know how to cause the inconsistency but the error happens when the
services.library.getMangaReadStatus
does not find a manga and returnsnull
What I see are pages as if I just installed Teemii with no mangas associated
Screenshots
No response
Logs
Platform
desktop
Device
PC & Mobile
Operating System
Windows 11
Browser
Firefox
Additional Context
Hosted in docker on a linux server Please feel free to ask for further clarifications and help if I can support
Code of Conduct