Closed jfmlima closed 7 months ago
The error message is only triggered in calibre-web as response to a request to "..../v1/initialization" and it's triggered in this block. https://github.com/janeczku/calibre-web/blob/3d07efbb4f67cd43c9dd7fd6f06b4499a40773ac/cps/kobo.py#L1047
The only thing calibre-web does it's requesting the kobo store from the server side parsing the response and then forwarding the answer to your computer. If you get this error message then the response from the kobo store can't be parsed, which leads me to the conclusion that the google instance is blocked. If your wifi (your connection with the google instance) get's blocked, then your computer should show the cloudflare page
Closing this as it as my requests were being blocked by cloudflared due to my VM instance in google being tagged.
I'm running into this, running Calibre-web from my local NAS and getting blocked by the Kobo store. Would be great if this could fail without blocking the rest of the local sync, though.
Describe the bug/problem
When trying to sync kobo with calibre web I'm getting the error in the title and a 403 on the gettests endpoint
nginx | some-ip - - [29/Sep/2023:20:35:23 +0000] "POST /kobo/kobo/TOKEN/v1/analytics/gettests HTTP/1.1" 403 1778
I'm running calibre over nginx on docker hosted in a google compute instance. Everything was running ok until today when I updated my kobo and suddenly I couldn't sync anymore.
I've even tried to remove nginx out of the equation but changing the api_endpoint to go straight to calibre web port to no avail, so I don't think the issue is with any reverse proxy configuration. Accessing to
v1/library/sync
outputs correctly in the browser.Logfile [2023-09-29 20:30:58,900] ERROR {cps.kobo:1076} Failed to receive or parse response from Kobo's init endpoint. Falling back to un-proxied mode. [2023-09-29 20:31:50,039] ERROR {cps.kobo:1076} Failed to receive or parse response from Kobo's init endpoint. Falling back to un-proxied mode. [2023-09-29 20:35:21,248] ERROR {cps.kobo:1076} Failed to receive or parse response from Kobo's init endpoint. Falling back to un-proxied mode.
Expected behavior Kobo should sync all everything from calibre as usual.
Environment:
Additional context My database is in google drive, but that shouldn't have any impact on this issue.
This is the output of the
/initialization
:Edit
Investigating a bit more, the kobo endpoint returns a cloudfare block page with the following:
So it seems that proxied requests are getting blocked, now the question is, is it my google instance getting blocked? Or my current wifi?
Any help would be appreciated. Thanks in advance.