View Single Post
Old 11-22-2017, 10:26 AM   #3
haertig
Wizard
haertig ought to be getting tired of karma fortunes by now.haertig ought to be getting tired of karma fortunes by now.haertig ought to be getting tired of karma fortunes by now.haertig ought to be getting tired of karma fortunes by now.haertig ought to be getting tired of karma fortunes by now.haertig ought to be getting tired of karma fortunes by now.haertig ought to be getting tired of karma fortunes by now.haertig ought to be getting tired of karma fortunes by now.haertig ought to be getting tired of karma fortunes by now.haertig ought to be getting tired of karma fortunes by now.haertig ought to be getting tired of karma fortunes by now.
 
Posts: 1,889
Karma: 31522252
Join Date: Sep 2017
Device: PW3, Fire HD8 Gen7, Moto G7, Sansa Clip v2, Ruizu X26
Thanks for the reply. You have written some fantastic software here, and are extremely quick and helpful in addressing questions. I wish all people I interacted with were as good as you!

===

That's what I've been doing. But I found a bug in that route. Which is what made me start investigating hitting the main Content Server webpage and not a library bookmark.

The first time you access the Content Server using a bookmark to the library page, before the Content server has had any chance to store its local data in your browser, you get the login/password popup. You authenticate, and it puts you right on the library page that I want. Expected operation. After authenticating, I told the browser (Chromium version 62) to remember my password.

Then I exited the browser and did the exact same thing again. The login/password popup hit the screen for about 1/2 second, then automatically dismissed itself, then I got a "401 unauthorized" message from the Content Server. This is unexpected behavior. In the brief 1/2 second that the login/password popup appears, I can see that my saved login information is being displayed. the bad operation appears as if the login/password popup is being populated, but then immediately canceled rather than being submitted.

Additional info: When this behavior begins, if I keep clicking on the same library bookmark over and over, somewhere between the 4th and 6th click - it lets me in normally! I and not changing anything in my process, just clicking the bookmark repeatedly, and finally it works. [ I know, "Doing the same thing over and over and expecting a different result is the definition of insanity." But in this case, it worked! ]

More info: If, after this behavior begins, I go into Chromium settings and manually delete all of Calibre's locally stored data, then try the bookmark again, then it works fine this way too.

Yet more info: I cannot duplicate this behavior in Firefox (version 57). That browser works perfectly every time when using a bookmark directly to the library. So my initial guess is that this is some interaction between Chromium and locally stored data and authentication. I can't say this for sure, but that's the way it appears. If I turn off user authentication, then everything works fine.

Here is the error that I get:

Code:
Failed to load books from calibre library, with error:
Failed to communicate with "/calibre/interface-data/books-init?library_id=Calibre&sort=author_sort.asc%2Cseries.asc&1511363334946", with status: [401] Unauthorized
And here is the bookmark that I am using:

Code:
http://10.192.0.26/calibre/#library_id=Calibre&panel=book_list&sort=author_sort.asc,series.as
I have found through my testing that I have to include "library_id=Calibre" in the bookmarked URL. however, I do NOT need to include the "vl=Novels" part, as that seems to be handled by the user definition in Calibre (shown above, in my initial post).
haertig is online now   Reply With Quote