View Single Post
Old 07-09-2014, 06:18 PM   #195
jhowell
Grand Sorcerer
jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.
 
jhowell's Avatar
 
Posts: 7,121
Karma: 92500001
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
Quote:
Originally Posted by eschwartz View Post
Sometimes when searching my whole library (I do that occasionally while AFKing) I get an error for some libraries: Search HADC for all by kim newman: Cannot perform search due to sign in failure
...
But it is the right info. It usually happens sporadically with >100 searches queued.

Perhaps something could be done to improve login? Or fallback on logged-out searching.
It's odd that the sign-in works sometimes and not others. I have not had that problem in my use of the plugin.

I will make a change to log the message OverDrive returns when the sign-in fails. That may be of some help to diagnose the problem. I will also add a plugin tweak (overdrive_link_ignore_login_failure = True) that you can enable to perform searches even if the sign in fails.

It may be a little while before I have time to make a new plugin release. In the mean time there is a plugin tweak in the current release that you can enable if you want to help diagnose the problem.

Under Preferences, Tweaks, Plugin Tweaks add a line with the following:
Code:
overdrive_link_save_responses_on_error = True
Then restart calibre. When this tweak is present the plugin will log the last response from the library web site to a file whenever an error occurs. The file will be saved in the working directory for calibre. The file name will be shown in the log of the search job.

For OverDrive sign in failures examine the file and look for whatever follows <section id="mainContent" class="eight columns">.
jhowell is offline   Reply With Quote