-
-
Notifications
You must be signed in to change notification settings - Fork 16
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
"ClientConnectionError" Plugin cannot connect to libby website. #33
Comments
Same here. Browsing to https://sentry-read.svc.overdrive.com/ also gives a certificate error. Hard to know if this is an mistake or deliberate. If the former, they may fix it fairly soon. If the latter, or if you are in a hurry, you can try my patched copy Edit. I think I have figured out the proper way to generate this file in Github, so the proper link is at https://github.com/sgmoore/libby-calibre-plugin/releases and download the overdrive-libby-plugin zip file from there. |
Thank you but with yours this is the error message I got
|
If you use his prepacked one from the gofile link it works fine, but repacking the github repo gives me the same error. I'm not sure whats the difference b/w those two. |
This is the one from gofile. But to be fair I have some difficulties getting the ACSM directly from the OD (not Libby) so maybe OD server is currently having a problem indeed? |
Probably that. But the plug-in should've worked for you regardless as it did for me. Try removing it and also the files related to it from the calibre/plugin folder and re-install and set it up again? |
It worked just now, even though the first few minutes it was a bit shaky. Oh no, never removing it and setting it up again, I suggest. The Libby code is different now and take a look at the other thread, they can't input the Libby code now. So never ever remove this plugin. |
Me either! I thought I had messed up, but I downloaded both and checked them At the time I sent those links they should have been exactly the same and if you repack the github repo now the only difference should be some changes to avoid lint errors in a completely different routine. |
Thanks for your patch really! As the previous commenter mentioned, some people are having trouble putting the Libby set up code now. I guess I'm never removing the current set up of mine. Also do you have issues downloading magazines as well? Could you look into it? |
I haven't tried the new one yet (just downloaded from the gofile link. On my current (old) version, everything stopped working. I couldn't generate a setup code, for example. Anyway, is the recommended course now to back up my current version, unzip the new one I just downloaded, then re-zip it, giving it the name of the original plugin zip? Do I have to tell Calibre to reinstall it from the zip after that? |
Just unzip @sgmoore's fork, and choose load plugin from file from Preferences >> Plugins. No need to rename, uninstall, etc. |
So use the fork, not the Gofile zip file? And if I unzip it, how do I install from zip? |
Oh no I meant the Gofile, sorry. It's just that the two are interchangeable to me. |
I'll have to figure out how to do this better, but there are currently two ways to get from the repo. The easy way is to download the zip file that has been automatically created by GitHub. A more general way of doing this means going to https://github.com/sgmoore/libby-calibre-plugin/actions and open the top entry with a green check mark and at the bottom you can download the plugin. The problem with that method is that I don't know how long that link will be valid for. (If you were to try this method on pings repo, you would find that the links have expired). The other method is to goto https://github.com/sgmoore/libby-calibre-plugin and click on code and download the whole repo, but that downloads too much, so you have to extract that to a temporary folder and find the calibre-plugin folder and then zip up its contents (not the actual folder) and load that into calibre. |
TLDR Sorry if I give you false hope, but I don't think I have the necessary skills. I don't think downloading magazines is possible. It may be possible for someone better than me to automate the setup/authentication progress, but even if no-one does, it is not the end of the world as there are workarounds I certainly don't have the skill set at the moment, and whilst I am trying to learn, to me it is like learning a new trade and complicated because all the information is in a foreign language which I also have to learn. So what I have done is like me using my school-boy french or latin to recognize and correct a few words, but that is a lot different from speaking fluent french or latin. I think the situation is that some of these are impossible and others may be are possible, but beyond my skill sets.
AFAIK, nobody is able to download magazines and nobody is able to download ebooks using the plugin. As I understand it, the plugin was written by looking at how the libby website or libby app did things and replicating that in the plugin code. If neither of those official methods provide a way of doing something then it can't be done. Libby used to provide a method of downloading both books and magazines. But quite some time ago, they changed their front-end website and app to do things differently, but their back-end still supported the old methods. But earlier this year, they appear to have removed these old methods. Since there currently does not seem to be any way of downloading magazines from the website or app, I don't think this is possible (even by someone with the same skills as ping) There is a new way of downloading ebooks from the website, so it may be possible to work out how they do it and change the plugin to do the same, but I think this is probably beyond my skill set. They have also changed the authentication method and setup code, but again that is something that should be possible to amend, but again probably beyond my skill set. (I have not looked at that because they there ways around. May not be very convenient but they do work) Sorry to disappoint. |
I downloaded the one at https://github.com/sgmoore/libby-calibre-plugin/actions/runs/10770909189/artifacts/1908277836, then followed the instructions to load from file. I closed & restarted Calibre. |
That's a different issue which my patched plugin does not fix. (It only fixes the ClientConnectionError/ CERTIFICATE_VERIFY_FAILED error). See #30 (comment) for a workaround for the setup code issue. This also requires a token from the website. The easiest way to get a token is using TheBoyLeastLikelyTo's extension (for chrome or bing) see #27 (comment) (or read the whole thread to see how to do it manually) |
Hold on, I can download e-books using the plugin. Have always been able to, except when there was a glitch now & then. |
Interesting. I have not been able to download ebooks from the plugin since the changes earlier this year (April / May) and I thought everyone was in the same position. Just tried it again and I got the following error.
When I did it from the plugin it had the option to tag the books and set custom columns for the borrowed date etc which made it more convenient as now I have to set all those manually, so I did miss this option. Wonder why downloading works for you and not me? |
This is an unofficial release. Changes: - Fix: Uses libbyapp.com domain rather than svc.overdrive.com which fixes ping#33 - Fix: Applied spicefather's fix for date time formats (see ping#17) Also includes unreleased changes by ping including the following - New: Rename a card - Fix: Use a regex validator instead of input mask for Libby setup code due to wonkiness, ref ping#14
Until a couple days ago I was able to see my holds & download them when available. Magazines stopped working a couple months ago, and I really miss that feature! I was able to get the token and put it in my .json file, and there is a setup code shown in that file as well. However, when I enter it into the Libby website, it says the number "doesn't match." And I can't make the plugin generate a code. My error message when opening the plugin: HTTP Error 403: Forbidden calibre 6.14.1 Portable embedded-python: True The above exception was the direct cause of the following exception: Traceback (most recent call last): And when trying to generate a setup code: calibre 6.14.1 Portable embedded-python: True The above exception was the direct cause of the following exception: Traceback (most recent call last): |
I copied the token yet again and this time I can once again see my holds, etc. I'm not sure why it worked this time and not before, since I did it exactly the same way, but... Edit: well, one thing may have been different. In trying to figure out an alternative way to get a setup code, I looked at Libby's website and then generated a pass key from the app on my phone. I then tried to figure out what I could actually do with that pass key , and couldn't find anything - couldn't even find a way to view the pass key , wherever it might be stored! But after doing that, I went into Libby again and recopied the token. After that I could again search libraries, see my holds, and even download a book. So maybe the pass key did something on the Libby side that was incorporated into the token. Sure would be nice to be able to download magazines again, though! I absolutely appreciate your efforts so far to update the plugin. |
I've have also seen this (where a copied token did not work and the second attempt worked). The token seems to change a lot, so it possible that it works just once and generates a new token for use the next time. So the first time I may have done something else on the website (like clicking on a link or refreshing the page) after copying the token which then used it up. And I do remember that spicefather's original instructions did state that you should copy the token from the last get request. Was happy enough to get a working token, so didn't investigate if this theory was valid. |
Yes, important to clarify that the last "get" is the one to use. I did use the last one each time (lost count of how many), but the one right after I generated the pass key from my phone worked. I don't know if there's any connection or it was just dumb luck. But if anyone else is having trouble with their token not "taking," if you have a convenient way to generate a pass key from one of your devices, it won't hurt to try. |
Okay so here's my workflow as of now.
Currently I would face 2 every week, and 5 frequently. I do 3 and 6 whenever needed and its going good so far. |
Hello, I am trying for the first time today. I am able to get the Sonos code from my phone & see the book I have borrowed. However, I am getting the error below - any suggestions? calibre, version 7.12.0 HTTP Error 403: Forbidden calibre 7.12 embedded-python: True The above exception was the direct cause of the following exception: Traceback (most recent call last): |
It's indeed showing this way to everyone else. It's currently broken and nobody can fix it. |
Thanks for taking the time to reply, I appreciate it. It’s a shame, my
daughter has a kindle & outside the US, you can’t get library books on it.
It seems frustrating & wasteful to have to buy a kobo, to get access to
library books. Oh well
(via mobile)
…On Sun, 29 Sep 2024 at 6:13 pm, Diana Santoso ***@***.***> wrote:
Hello, I am trying for the first time today. I am able to get the Sonos
code from my phone & see the book I have borrowed. However, I am getting
the error below - any suggestions?
It's indeed showing this way to everyone else. It's currently broken and
nobody can fix it.
—
Reply to this email directly, view it on GitHub
<#33 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BLQL7V6RVYE7AU3YRPE6DGTZY6ZCBAVCNFSM6AAAAABN3YW3OSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOBRGI2TKNBZGI>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Things are not quite that bad! (Don't mean to imply anything bad about the kobo, but it is not the only way to get access to libby/ overdrive books) You can currently use the plugin to search for books and to borrow them, then switch to the loans tab and right click on the borrowed book and select 'open in libby' or 'open in overdrive' and then download the book from there. Then switch back to calibre and open the downloaded file (which is usually just the acsm file). Not as convenient as the one click which used to work, but at least it still works. You could of course do all your searching, borrowing and downloading on the website, so even if this plugin stops working altogether, you can still get access to library books. |
can you tell me how to download the ascm file, please?
This step here: "and select 'open in libby' or 'open in overdrive' and
then *download
the book from there*"
I can't see an option to download a file from either overdrive or libby,
just an option to read on the website
…On Sun, Sep 29, 2024 at 8:11 PM sgmoore ***@***.***> wrote:
It seems frustrating & wasteful to have to buy a kobo, to get access to
library books. Oh well
Things are not quite that bad! (Don't mean to imply anything bad about the
kobo, but it is not the only way to get access to libby/ overdrive books)
You can currently use the plugin to search for books and to borrow them,
then switch to the loans tab and right click on the borrowed book and
select 'open in libby' or 'open in overdrive' and then download the book
from there. Then switch back to calibre and open the downloaded file (which
is usually just the acsm file).
Not as convenient as the one click which used to work, but at least it
still works.
You could of course do *all* your searching, borrowing and downloading on
the website, so even if this plugin stops working altogether, you can still
get access to library books.
—
Reply to this email directly, view it on GitHub
<#33 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BLQL7V3OVRA7DAWJ74QAMITZY7G6LAVCNFSM6AAAAABN3YW3OSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOBRGI4TMMJQGI>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
I'm sorting guessing here, but there may be a few reasons The book may not be in a downloadable format ( but the only time that had happened to me is if the 'book' is actually a comic book or a magazine). You may you have selected someone wrong on the choices option at https://libbyapp.com/interview/configure/fulfillment#presentChoice (I have mine set for no preference) If you have already accessed the book by another method, the format may be locked until you return and re-borrow. (See https://github.com/ping/libby-calibre-plugin#format-locking for more details). I've also read some people who had said that their library card is limited in what they can do. What happens for me is the following When I 'View in overdrive' (I incorrectly called it 'Open in overdrive') it takes me to a page with the book details and on the right-hand-side it shows the available formats (which could be something like "Kindle Book" "OverDrive Read" and "EPUB ebook" ) If the latter is missing, then it is possible that the book can not be downloaded, When I 'View in Libby', it will show me the book details and near the bottom it will have a section called 'Read with' which details the formats (which could be something like 'Libby Book', 'EPUB (DRM)' and 'Kindle') Again if EPUB is not there then the book may not be downloadable. You then need to switch to your shelf (the books icon at the bottom) and then click on 'Manage Loan' for the book and then 'Read With' and finally 'EPUB' |
This is already kind of out of topic and you should be able to solve this by visiting Libby's FAQ or Help topic or something. Your library also would have a page explaining things usually but I'll explain it for you using some screenshots:
If you don't see this meaning you're borrowing and Overdrive Read only book. Usually it's in the form of comic / graphic books. Maybe magazines as well if I'm not mistaken but I'm not sure since I don't borrow magz from OD/Libby. |
Thanks both, for taking the time to do this for me. As I suspected, it
doesn’t work in Australia, where kobo is the only device which officially
supports Libby. But: your links lead me to Overdrive (which isn’t co-listed
with Libby) and that DOES work. So, hooray: I have a solution, which means
I don’t need to buy a kobo
Many many thanks
(via mobile)
…On Mon, 30 Sep 2024 at 12:08 am, Diana Santoso ***@***.***> wrote:
can you tell me how to download the ascm file, please? This step here:
"and select 'open in libby' or 'open in overdrive' and then *download the
book from there*" I can't see an option to download a file from either
overdrive or libby, just an option to read on the website
… <#m_-7235619708692609043_>
This is already kind of out of topic and you should be able to solve this
by visiting Libby's FAQ or Help topic or something. Your library also would
have a page explaining things usually but I'll explain it for you using
some screenshots:
`
Libby.how.1.png (view on web)
<https://github.com/user-attachments/assets/36b2f8f9-7d51-4a64-90f3-185f47c7392c>
1. After borrowing the book, click *Manage Loan*
libby.how.2.png (view on web)
<https://github.com/user-attachments/assets/fa7ecef8-6694-4b07-8516-c6ed35d2f019>
2. Click *Read with*
libby.how.3.png (view on web)
<https://github.com/user-attachments/assets/b540ad47-fba9-4a77-b969-229c0ddedeae>
3. Pick EPUB option.
If you don't see this meaning you're borrowing and Overdrive Read only
book. Usually it's in the form of comic / graphic books. Maybe magazines as
well if I'm not mistaken but I'm not sure since I don't borrow magz from
OD/Libby.
—
Reply to this email directly, view it on GitHub
<#33 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BLQL7V7QAXGACXMYA3BVPA3ZZACWRAVCNFSM6AAAAABN3YW3OSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOBRGM3TCNZQGQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Plugin throws up this error when opened now.
I tried to give it refreshed tokens multiple times yet it shows this error. Anyone else facing the same issue?
`calibre 7.17 embedded-python: True
Windows-10-10.0.22000-SP0 Windows ('64bit', 'WindowsPE')
('Windows', '10', '10.0.22000')
Python 3.11.5
Windows: ('10', '10.0.22000', 'SP0', 'Multiprocessor Free')
Interface language: None
EXE path: C:\Program Files\Calibre2\calibre.exe
Successfully initialized third party plugins: DeACSM (0, 0, 16) && Gather KFX-ZIP (from KFX Input) (2, 15, 0) && DeDRM (10, 0, 9) && Package KFX (from KFX Input) (2, 15, 0) && Goodreads (1, 8, 2) && Goodreads More Tags (1, 2, 1) && Goodreads Sync (1, 16, 8) && KFX metadata reader (from KFX Input) (2, 15, 0) && From KFX (2, 15, 0) && KFX Input (2, 15, 0) && KOReader Sync (0, 6, 7) && Kindle hi-res covers (0, 5, 1) && Kobo Utilities (2, 17, 1) && OverDrive Libby (0, 1, 9) && Overdrive Link (2, 57, 0) && Reading Goal (1, 6, 5) && Overdrive Link Metadata Source (2, 57, 0)
Traceback (most recent call last):
File "urllib\request.py", line 1348, in do_open
File "http\client.py", line 1286, in request
File "http\client.py", line 1332, in _send_request
File "http\client.py", line 1281, in endheaders
File "http\client.py", line 1041, in _send_output
File "http\client.py", line 979, in send
File "http\client.py", line 1458, in connect
File "ssl.py", line 517, in wrap_socket
File "ssl.py", line 1108, in _create
File "ssl.py", line 1379, in do_handshake
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: Hostname mismatch, certificate is not valid for 'sentry-read.svc.overdrive.com'. (_ssl.c:1006)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "calibre_plugins.overdrive_libby.libby.client", line 518, in send_request
File "urllib\request.py", line 519, in open
File "urllib\request.py", line 536, in _open
File "urllib\request.py", line 496, in _call_chain
File "urllib\request.py", line 1391, in https_open
File "urllib\request.py", line 1351, in do_open
urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: Hostname mismatch, certificate is not valid for 'sentry-read.svc.overdrive.com'. (_ssl.c:1006)>
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "calibre_plugins.overdrive_libby.action", line 133, in
File "calibre\customize_init_.py", line 188, in do_user_config
File "calibre_plugins.overdrive_libby.init", line 104, in save_settings
File "calibre_plugins.overdrive_libby.config", line 947, in save_settings
File "calibre_plugins.overdrive_libby.libby.client", line 593, in get_chip
File "calibre_plugins.overdrive_libby.libby.client", line 556, in send_request
calibre_plugins.overdrive_libby.libby.errors.ClientConnectionError: <calibre_plugins.overdrive_libby.libby.errors.ClientConnectionError; http_status=0, msg='URLError <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: Hostname mismatch, certificate is not valid for 'sentry-read.svc.overdrive.com'. (_ssl.c:1006)>', error_response='''>
`
The text was updated successfully, but these errors were encountered: