View Single Post
Old 06-26-2017, 08:38 PM   #1
rutmang
Junior Member
rutmang began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Aug 2013
Device: Kindle Fire 8.9
ebook reader: blob error expecting text

Hello All,
I have performed an upgrade to 3.1.1 on an existing Ubuntu 16.04 server running calibre-server. Things look ok, and the reader works when I hit it locally by the IP address and the port.

But when I try to use it from Apache presenting it externally, the reader function throws an error:

Code:
Uncaught InvalidStateError: Failed to read the 'responseText' property from 'XMLHttpRequest': The value is only accessible if the object's 'responseType' is '' or 'text' (was 'blob').
Error at calibre:4819:32
Traceback (most recent call last):
    at XMLHttpRequest.ρσ_anonfunc (https://xxxxx.net/calibre:4894:21)
    at complete_callback (https://xxxxx.net/calibre:4863:21)
    at set_error (https://xxxxx.net/calibre:4819:32)
Error: Failed to read the 'responseText' property from 'XMLHttpRequest': The value is only accessible if the object's 'responseType' is '' or 'text' (was 'blob').
My calibre.service script:

Code:
[Unit]
Description=Calibre Service
After=network.target

[Service]
Type=forking
PIDFILE=/tmp/calibre-server.pid
ExecStart=/opt/calibre/calibre-server /media/usb1/media/calibrelibrary \
        --daemonize \
        --log=/var/log/calibre-server \
        --max-opds-items=30 \
        --max-opds-ungrouped-items=100 \
        --port=8088 \
        --pidfile=/tmp/calibre-server.pid \
        --url-prefix=/calibre
        --auth-mode=basic

[Install]
WantedBy=multi-user.target
The log is only showing:

Code:
calibre server listening on 0.0.0.0:8088
OPDS feeds advertised via BonJour at: 192.168.10.68 port: 8088
Externally, I can browse and download books from the webpage or through OPDS. When I try the Read button, it attempts the download sequence and then pops the error above.

I can only guess something with the new reader function doesn't like how I've had Apache set up for normal operation in the past. Any ideas would be helpful! Thank you!
rutmang is offline   Reply With Quote