Suwayomi-Server: Cubari: remote storage account support in extension via webview login not working
Steps to reproduce
- Get latest preview server with webview implementations
- Get cubari extension
- login to remote storage account (5apps or other) on cubari via webview
- have something in you history or pinned series on your cubari remote storage account
- open popular/latest section of extension
Expected behavior
- shows history in latest section or pinned series in popular section
Actual behavior
- error
ApolloError: Cannot read Json element because of unexpected end of the input at path: $
JSON input:
Suwayomi-Server version
v2.0.1826 (via docker)
Server operating system
Arch Linux (host)
Server Desktop Environment
Kde Plasma (host)
Server JVM version
the one used in the docker container
Used client name
WebUI
Client version
v20250703.01 (r2643)
Used web browser
Firefox 140
Client operating system
Arch Linux
Other details
started the server and got logs like so:
$ docker-compose pull
$ xhost +
$ docker-compose up | tee server.1.log
Acknowledgements
- I have searched the existing issues and this is a new ticket, NOT a duplicate or related to another open or closed issue.
- I have written a short but informative title (ideally less than ~100 characters).
- I have tried the troubleshooting guide described in README.md
- I have updated to the latest version.
- I have filled out all of the requested information in this form, including specific version numbers.
- I understand that Suwayomi does not have or fix any extensions, and I will not receive help for any issues related to sources or extensions.
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 48 (46 by maintainers)
Commits related to this issue
- [#1497] WebView: Localstorage — committed to cpiber/Suwayomi-Server by cpiber a year ago
- [#1497] WebView: Localstorage (#1500) * [#1497] WebView: Localstorage * WebView: Transition to our own header/postData system This is also what is recommended by most other posts, I haven't seen th... — committed to Suwayomi/Suwayomi-Server by cpiber a year ago
Correct. For now, the expected result is “No manga”, but #1500 fixes it
this made it work… (seeing No results on cubari extension, didn’t try login)
do I need to specify your repo/branch somewhere in the docker-compose? (changes you posted doesn’t seem to have any references to your repo)
same issue, it always shows the error, without logging into webview as well.
maybe docker weirdness?
Hm, I just tested this, and I see the same on both Suwayomi and Mihon: no series at all, despite me having a reading history.
After that, I pinned one of the manga, and it showed up in Mihon, but Suwayomi still showed “No manga”. This might be due to local storage, as you say, since we only share cookies. This does not explain that it won’t load at all for you, since I still see a success, just an empty one.
However, there is certainly a bug there, I can consistently get the WebView to stop responding (thread stopped?) by opening Cubari first in interactive WebView and then twice in background WebView. That is certainly a bug in the scheduler. This might be related to what you’re seeing, but not sure right now. Will investigate more tomorrow.
Maybe localstorage on the two webviews is different that’s why?
As mihon may have the series loaded in localstorage when logging into webview
Not a scientific measurement but the Cubari website opens quickly and remotestorage stuff pops up moments after, definitely less than 10 seconds.
This thing works fine on mihon on phone on the same network.
Not from the logs I’m seeing. Also, Cubari was the main extension I used to test the background webview. Granted, I never had the situation where I was logged in, but generally it should work to return data to the interface. I usually just got
[], which is expected since I’m not logged in, but it is data.