Calibre Web Viewer and Cache for Offline Reading

Bug #2050075 reported by Nguyen Quoc Khanh
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
calibre
Fix Released
Undecided
Unassigned

Bug Description

Firstly, I understand that by default Calibre Web Viewer is not supporting cache for http connection. As a work-around, I use Fully Kiosk Browser (on Android) and its cache mode to read and it is mostly fine, better than using Chrome (or other browser).

However, recently (I don't remember from which version, 6.xx maybe) even in the cache mode, if Calibre Content Server is offline for a reason or if the connection is lost (travelling in an airplane), the following message pops up regularly (I think when ever I tap to turn pages or make highlights...)

Uncaught TypeError: undefined is not iterable (cannot read property Symbol(Symbol.iterator))
Error at http://xyz/:3082:24
Traceback (most recent call last):
    at IframeWrapper.handle_message (http://xyz/:18891:17)
    at View.on_update_cfi (http://xyz5/:50823:17)
    at update_book_in_recently_read_by_user_on_home_page (http://xyz/:12407:28)
    at ρσ_Iterable (http://xyz/:3082:24)
TypeError: undefined is not iterable (cannot read property Symbol(Symbol.iterator))

I'm just guessing that Calibre Web Viewer is calling home regularly to sync (and else), which is acceptable for me because the server is on most of the time, but if there is an option to pause it during irregular moments, it would be great.

Thank you.

PS: at this moment, my Poke 3 can't get to wifi so it can't connect to the server because of local power cut....

description: updated
description: updated
Revision history for this message
Kovid Goyal (kovid) wrote :

Fixed in branch master. The fix will be in the next release. calibre is usually released every alternate Friday.

Changed in calibre:
status: New → Fix Released
Revision history for this message
Nguyen Quoc Khanh (quockhanh77) wrote :

Thank you for the fix in Calibre 7.5.1.

It works well in offline mode. Yeah.

But when I reconnect to the server after the app (fully kiosk browser, chrome) is swiped off, the following error appears, even when the server is online

Uncaught TypeError: Cannot read properties of undefined (reading 'is_local')
Error at http://yyz.xmm/:10879:141
Traceback (most recent call last):
    at XMLHttpRequest.ρσ_anonfunc (http://yyz.xmm/:5952:21)
    at complete_callback (http://yyz.xmm/:5920:17)
    at on_data_loaded (http://yyz.xmm/:11516:24)
    at UserSessionData.set_library_option (http://yyz.xmm/:10898:25)
    at UserSessionData.set (http://yyz.xmm/:10879:141)
TypeError: Cannot read properties of undefined (reading 'is_local')

It can be closed and the reading is normal, until the next clean connection

Revision history for this message
Kovid Goyal (kovid) wrote :
Revision history for this message
Nguyen Quoc Khanh (quockhanh77) wrote :

May I ask is it implemented in the exe (7.5.1 now) yet?

Revision history for this message
Kovid Goyal (kovid) wrote :

No, it isnt.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.