-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Kobo Sync request fails with invalid token #2318
Comments
@OzzieIsaacs Yes it is using Docker, but I highly doubt the Docker setup is the issue here. Might you have any idea what is causing the error message / how to fix it? |
Still happening with the latest version... anyone have any ideas or suggestions? |
Any update on this? I'm having the exact same issue |
Question: are you using a valid Kobo/Rakuten/Partner account or are you using it without an account or a dummy account? (so you can use the device without an account) |
I actually figured it out. Essentially it was because I was using |
Ah cool.. For others reading this thread, I figured out my particular case as well: I manually edited the SQLite database on the Kobo so I could use the device without an account. ('cause I don't like the idea of an account just to use the device) For basically all intents and purposes, this works fine.... except for the sync with Calibre-web. (see my earlier token issues) By removing the fake "account" entry and using a real-life account, it works fine. |
@mvdkleijn then we're good to close the issue? 😄 |
I guess so... though it's weird to me that what's supposed to be a local solution is apparently depending on the remote server |
Maybe @OzzieIsaacs could comment on the apparent non-local behaviour? Is it expected and normal behaviour for CalibreWeb to require an online Kobo account for the Kobo to be ably to sync successfully? |
@the-mann could you elaborate on which settings you had to update? I'm running into the same issue behind nginx/proxy-man and nothing I've changed has been working for me. |
Not sure if you've tried this but I managed to resolve this issue by setting |
Got the same issue, calibre-web installed via pip as recommended in the docs, serving on default port 8083 in my local network, no access from outside my local network needed or setup for sync. Synching to calibre-web works fine for a day or two, then this error re-appears which can only be fixed by using the original api_endpoint https://storeapi.kobo.com once for a sync, which refreshes the access token for the kobo store. |
Context: I'm running Calibre-web on a raspberry-pi only on my internal network and saw this same issue. Seems like 24 hours after the token is issued successfully, the refresh doesn't work, but downloading books from the server does still work, so it's only annoying if you're using the syncing functionalities for other reasons For anyone else who stumbles across this issue with the error "Sync Failed. Please Try Again." this fix worked for me! The file was located here if you're using venv: ~/.venv/lib/python3.11/site-packages/calibreweb/cps/kobo.py, but the fix works just the same. Debug logs showed 401 response trying to refresh the token |
Describe the bug/problem
Installed as a Docker container running on port 80 (inside and out)
Enabled Kobo sync
Logs show the following:
No clue why it shows invalid token type or expiredtoken... I deleted and regenerated the sync token and updated the kobo device but to no avail.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Sync works
Environment (please complete the following information):
Additional context
No reverse proxy, everything connected on port 80.
Manual check of sync url works and shows bunch of correct looking json.
Manual check of download url in json response also works fine.
The text was updated successfully, but these errors were encountered: