Skip to content

Calibre behind NGINX causes BAD REQUEST during sync setup #214

@MasterEmit

Description

@MasterEmit

After struggling around I finally was able to get calibre running at an internet server (with PLESK). So calibre was installed with docker and the port for the standard GUI bound via NGINX proxy to an address (https://calibre.somedomainname.net/) and after setting up the calibre network server with mandatory username and password and bound this port to another address with NGINX proxy I was able to get a JSON file from https://calibrerest.somedomainname.net/ajax/library-info. Of course before the standard auth dialog of the browser appeared, where I needed to enter the credentials entered before.

Now I tried to setup the calibre sync in the app, but I always get a BAD REQUEST.

c7.k: Bad Request
	at c7.h.b(r8-map-id-07fbb00b34f24ab1f070b9a277f5ffdf1afe2b069e1895198727d74fc16daeba:147)
	at c7.h.d(r8-map-id-07fbb00b34f24ab1f070b9a277f5ffdf1afe2b069e1895198727d74fc16daeba:355)
	at c7.e.call(r8-map-id-07fbb00b34f24ab1f070b9a277f5ffdf1afe2b069e1895198727d74fc16daeba:44)
	at java.util.concurrent.FutureTask.run(FutureTask.java:317)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1156)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:651)
	at java.lang.Thread.run(Thread.java:1119)```

Preferences:

```Bookshelf.CurrentBookshelf=Alle Bücher
bookList.style.current=995c246e-4356-41c1-aa98-5e3a4f855834
booklist.context.menu=0
booklist.fastscroller.overlay=3
booklist.rebuild.state=0
bookshelf.default.id=3
calibre.enabled=true
calibre.fields.update.Book:fileSpec:0=1
calibre.fields.update.author_list=2
calibre.fields.update.clb_book_id=1
calibre.fields.update.clb_book_main_format=1
calibre.fields.update.clb_book_uuid=1
calibre.fields.update.date_published=1
calibre.fields.update.description=1
calibre.fields.update.format=1
calibre.fields.update.identifier_list=2
calibre.fields.update.language=1
calibre.fields.update.notes=1
calibre.fields.update.publisher_list=2
calibre.fields.update.read=1
calibre.fields.update.read_end=1
calibre.fields.update.read_start=1
calibre.fields.update.series_list=2
calibre.fields.update.tag_list=2
calibre.fields.update.thumbnail.0=1
calibre.fields.update.title=1
calibre.folder=content://com.android.externalstorage.documents/tree/primary%3Acalibre
calibre.host.password=********
calibre.host.url=https://calibrerest.somedomain.net
calibre.host.user=********
calibre.timeout.connect=10
calibre.timeout.read=10
camera.torch.status=false
camera.zoom.control.value=0.0
edit.book.isbn.checks=1
edit.book.tab.externalId=false
edit.capitalize.title=1
fields.update.usage.Book:fileSpec:0=1
fields.update.usage.Book:fileSpec:1=1
fields.update.usage.Book:fileSpec:2=1
fields.update.usage.Book:fileSpec:3=1
fields.update.usage.author_list=2
fields.update.usage.color=1
fields.update.usage.date_published=1
fields.update.usage.description=1
fields.update.usage.first_publication=1
fields.update.usage.format=1
fields.update.usage.identifier_list=2
fields.update.usage.isbn=1
fields.update.usage.language=1
fields.update.usage.list_price=1
fields.update.usage.list_price_currency=1
fields.update.usage.pages=1
fields.update.usage.print_run=1
fields.update.usage.publisher_list=2
fields.update.usage.series_list=2
fields.update.usage.tag_list=2
fields.update.usage.thumbnail.0=1
fields.update.usage.thumbnail.1=1
fields.update.usage.thumbnail.2=1
fields.update.usage.thumbnail.3=1
fields.update.usage.title=1
fields.update.usage.title_original_lang=1
fields.update.usage.toc_list=2
fields.update.usage.translation_orig_lang=1
fields.visibility=9223372036854775807
fields.visibility.loaned_to=true
language.mapping.cached.deu=true
language.mapping.cached.eng=true
network.allow.metered=true
scan.queue=
search.reformat.color=true
search.reformat.format=true
sort.title.reordered=true
startup.backupCountdown=1
startup.startCount=4
startup.startCountdown=1
storage.volume.index=0
ui.dialog.mode=2
ui.fastscroller.draghandle=0
ui.menu.context.mode=2
ui.theme=0
ui.theme.color=0

So from the browser the url "https://calibrerest.somedomain.net/ajax/library-info" shows as expected:

{"library_map": {"books": "books"}, "default_library": "books"}

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions