Open ahegel opened 2 hours ago
Hi - can you please provide more details of the specific book you were after. Normally that sort of error can happen when the Goodreads website is having a "moment", but it is possible there is some edge case the plugin isn't handling if I can replicate it. For that I need the exact book details of the title and author, if it already has a goodreads id value as an identifier then tell me that value too...
Book 1
Book 2
Both of those are working perfectly fine for me - the dialog appears with a list of options, I select one and job done. Was the dialog not appearing when you tried before? Have you tried again since then? This really looks like a Goodreads connectivity issue on your side.
Thank you for checking! I've been linking hundreds of books in the last few hours and these are the only ones that have given me trouble, and the error has been consistent as I've tried and retried them, so I don't think it's an issue with my Goodreads connectivity. I just found 2 more I've listed below. Either way, I feel that the error should be handled. It's inconvenient to bulk-link 20 books, select the correct match for 19 of them, then hit the error on the 20th book and lose all the links I've been making in that bulk action and have to re-do them all.
Book 3:
Book 4:
ETA: The error appears as soon as I hit "Link to Goodreads" - the dialog never appears.
Ok, I just managed to replicate with the first of your books above. The key difference being with those ones you mention an ISBN value. I assume the problem is that the ISBN doesn't match anything in Goodreads. To get going in the meantime just remove that ISBN from the IDs field on those books you are having the issue with until I get a moment to check what the actual response from Goodreads is and how to handle it more gracefully.
You didnt mention an ISBN on the previous two books, however your error stack you put in the first post shows that it also was in the code path where the book has an ISBN so it attempts to match based on that first (before falling back to title/author). Not sure if you just overlooked that or whatever...
You're right, there is an ISBN for both of the first books I linked but I gave you the URL that Calibre creates under the Ids field for them instead of the actual ISBN, sorry about that! Thank you for the workaround, that makes sense and will address my issue for now.
Aha - I thought that would be the case.
It is actually succeeding in finding a match for that ISBN but then failing to retrieve the book data for it. The plugin bug is that it is getting a 404 error but the plugin is expecting something else and falling over.
What is strange is if I put the same url that it is failing to retrieve from into a web browser it works, yet it is consistently failing when called from the plugin. On the two books you gave me the ISBN for there is a big warning at the top of the Goodreads page for the corresponding book, you can see an example here: https://www.goodreads.com/book/show/2287744.The_McKinsey_Mind
So it seems they are ISBN values that Goodreads doesn't like - at least for that book they have other editions without the warning message.
The plugin fix I will publish shortly, but you have the workaround now you know, thanks for reporting the issue.
I have seen this error on 2 books when clicking the book and selecting "Link to Goodreads". I don't see anything distinctive about those 2 books that sets them apart from the hundreds I also linked that worked fine.