janeczku / calibre-web

:books: Web app for browsing, reading and downloading eBooks stored in a Calibre database
GNU General Public License v3.0
13.13k stars 1.4k forks source link

ERROR when using iphone to open a book's comment #3182

Closed ctq closed 1 month ago

ctq commented 1 month ago

Describe the bug/problem IPhone + chrome, open a book with comment reference, click the comment, calibre-web didn't jump to the expect comment, but jump to the login page.

Logfile

[2024-10-09 22:18:28,767]  INFO {cps.web:1231} Serving book: 苏东坡新传 - 李一冰
[2024-10-09 22:51:49,558] ERROR {cps.server:1349} <gevent._socket3.socket at 0x7f457a0e2da0 object, fd=41, family=10, type=1, proto=0>: (from ('::ffff:172.18.0.1', 58784, 0, 0)) Invalid HTTP method: '\x16\x03\x01\x00î\x01\x00\x00ê\x03\x03ärαÍ\x84ráðm(?z$KÅ\x90\x0c«á¦:2le\x8fÖ\x186¡¯n ¿B\x1dc0v³\x83\x15ü\xa0\x8d©ÎÊÇóÝB×\x82Ü\x9a¡\x92\x8aRR\x05ô´(\x00&̨̩À/À0À+À,À\x13À\tÀ\x14À\n'
[2024-10-09 22:51:58,042] ERROR {cps.server:1349} <gevent._socket3.socket at 0x7f4560d56500 object, fd=41, family=10, type=1, proto=0>: (from ('::ffff:172.18.0.1', 58814, 0, 0)) Invalid http version: 'PRI * HTTP/2.0\r\n'
[2024-10-09 22:52:03,355] ERROR {cps.server:1349} <gevent._socket3.socket at 0x7f4560c12920 object, fd=41, family=10, type=1, proto=0>: (from ('::ffff:172.18.0.1', 37362, 0, 0)) Invalid http version: 'PRI * HTTP/2.0\r\n'

Additional context The book is a Chinese book of epub format. I can share it it necessary.

OzzieIsaacs commented 1 month ago

For me it's working. Your problem is related to this: Invalid http version: 'PRI * HTTP/2.0, something in your request chain changes the http request version from 1.1/1.0 to http version 2.0.
This is one of this usual strange docker phenomenon