obsidian-calibre-plugin icon indicating copy to clipboard operation
obsidian-calibre-plugin copied to clipboard

Error when trying to open Calibre container

Open baileymh opened this issue 3 years ago • 26 comments

On Windows 10, currently getting the following error. Web address is correct.

Failed to communicate with "/interface-data/init?1643148174249", with status: [400 (error)] Bad Request

Failed to parse header line

baileymh avatar Jan 25 '22 22:01 baileymh

Also Win10, calibre server is running, I'm getting a similar error when trying to access it in obsidian.

Failed to communicate with "/interface-data/init?1647731245984", with status: [400 (error)] Bad Request

Failed to parse header line

nort4n avatar Mar 19 '22 23:03 nort4n

Also on macOS 12.3.1. Test server in calibre preferences works.

ghost avatar Apr 27 '22 10:04 ghost

Also windows 10, server works in browser, same error withing Obsidian

Lulullia avatar Apr 28 '22 18:04 Lulullia

I also encountered the same error on Linux OS.

Calibre version: 3.40; Obsidian: 0.14.6; Obsidian-calibre-plugin: 1.0.5

pqnhan avatar Apr 29 '22 01:04 pqnhan

Yes, I reported a bug to obsidian. https://forum.obsidian.md/t/http-header-sec-ch-ua-without-value/36680

caronchen avatar Apr 29 '22 03:04 caronchen

the link you sent says it was fixed in 0.14.8, but still not working for me in Obsidian Version 0.15.6 (installer 0.14.15), with latest version of plugin.

ksdavidc avatar Jul 21 '22 00:07 ksdavidc

same problem :((

neKmaI avatar Aug 03 '22 04:08 neKmaI

Given the error, is there a way to actually use this plugin? Are only some people seeing it?

phillipjohnston avatar Aug 04 '22 15:08 phillipjohnston

Ok, I narrowed it down a bit: when I use the localhost/127.0.0.1 - I get the error. If I use my local network IP address, I can access the content sever. So it seems related specifically to using localhost.

phillipjohnston avatar Aug 04 '22 15:08 phillipjohnston

Ok, I narrowed it down a bit: when I use the localhost/127.0.0.1 - I get the error. If I use my local network IP address, I can access the content sever. So it seems related specifically to using localhost.

I try your, but calibre plugin show nothing at all now :(( just a completely blank panel

neKmaI avatar Aug 06 '22 21:08 neKmaI

What's your request headers?

Check if the sec-ch-ua header exists?

image

caronchen avatar Aug 09 '22 06:08 caronchen

Failed to communicate with "/interface-data/init?1662452066608", with status: [400 (error)] Bad Request

Failed to parse header line

Kaergo avatar Sep 06 '22 08:09 Kaergo

Need to use your computer IP address (calibre plugin in obsidian), do not use the Localhost nor 127.0.0.1

After that and also config the port number in Calibre, Obsidian will show your calibre library.

At least for me, can only read EPUB and TXT. No luck with PDF.

2022-09-20_17-26-44

rodrigoavb avatar Sep 20 '22 20:09 rodrigoavb

Need to use your computer IP address (calibre plugin in obsidian), do not use the Localhost nor 127.0.0.1

After that and also config the port number in Calibre, Obsidian will show your calibre library.

At least for me, can only read EPUB and TXT. No luck with PDF.

2022-09-20_17-26-44

Thanks, that worked for me. Reader issues seem to be the same, no pdf, epub seems to work for the most part.

nort4n avatar Sep 21 '22 10:09 nort4n

Same Problem... Windows 10, tried with ip adress and still dont work...

peacefulwebwarrior avatar Nov 07 '22 02:11 peacefulwebwarrior

I have the same problem. Any advise or help? Thank you

giorgiet avatar Nov 25 '22 05:11 giorgiet

this is my config... you need to change the IP address to your own, but copy the port. Also note that I use "http" not "https"

2022-11-29_17-07-36

rodrigoavb avatar Nov 29 '22 20:11 rodrigoavb

Thank you Rodrigoavb!!!!!, it worked. I appreciate your help.

Best!!!

giorgiet avatar Nov 29 '22 20:11 giorgiet

Same Problem... Windows 10, tried with ip adress and still dont work...

Review my new reply, might be helpful.

rodrigoavb avatar Nov 29 '22 23:11 rodrigoavb

Ok, I narrowed it down a bit: when I use the localhost/127.0.0.1 - I get the error. If I use my local network IP address, I can access the content sever. So it seems related specifically to using localhost.

Thank you! Saved my day

BumbrT avatar Jan 15 '23 07:01 BumbrT

Don't have a clue about how to find my IP address.

  1. C: \Users.....\ipconfig List shows up but do not know what to choose. Is it IPv4 Address....?

Received a Gmail from plugin creators but had very limited info...just a picture. Help please. :)

obsidianbible avatar Mar 20 '23 15:03 obsidianbible

Assuming you're on Windows... 1.- Windows logo key + R 2.- Type "cmd" without the quotes 3.- Type "ipconfig" 4.- you'll fin your IP at: IPv4 Address. . . . . . . . : xxx.xxx.xxx.xxx

I also attached some pics

2023-03-23_11-04-46

2023-03-23_11-05-19

rodrigoavb avatar Mar 23 '23 14:03 rodrigoavb

Thank you very much for your extra effort!!! I really appreciate your explanation.

On Thu, Mar 23, 2023 at 8:22 AM rodrigoavb @.***> wrote:

Assuming you're on Windows... 1.- Windows logo key + R 2.- Type "cmd" without the quotes 3.- Type "ipconfig" 4.- you'll fin your IP at: IPv4 Address. . . . . . . . : xxx.xxx.xxx.xxx

I also attached some pics

[image: 2023-03-23_11-04-46] https://user-images.githubusercontent.com/103136601/227232144-d2bd879d-3bc5-468a-858c-4aa4dc89f703.png

[image: 2023-03-23_11-05-19] https://user-images.githubusercontent.com/103136601/227233398-7ae1a276-87ad-491e-93fa-f53ac82ca052.png

— Reply to this email directly, view it on GitHub https://github.com/caronchen/obsidian-calibre-plugin/issues/6#issuecomment-1481290534, or unsubscribe https://github.com/notifications/unsubscribe-auth/A4YIZUWDW3NWAQJ4GJXKM7LW5RMEBANCNFSM5MZPAL2Q . You are receiving this because you commented.Message ID: @.***>

obsidianbible avatar Mar 23 '23 15:03 obsidianbible

@rodrigoavb Your solution worked great!! EXCEPT it does not open in the current file. It opens below, but as a blank screen. Instead, Calibre opens in a separate window on a second monitor. Not sure if this is my monitor settings or an Calibre split screen Obsidian/Calibre issue???

obsidianbible avatar Mar 26 '23 18:03 obsidianbible

@obsidianbible @rodrigoavb I've released a new version that now automatically replaces 'localhost' with local IP address.

caronchen avatar Apr 03 '23 01:04 caronchen

Thank you. It now loads on the same screen.

On Sun, Apr 2, 2023 at 7:17 PM zhifeng @.***> wrote:

@obsidianbible https://github.com/obsidianbible @rodrigoavb https://github.com/rodrigoavb I've released a new version that now automatically replaces 'localhost' with local IP address.

— Reply to this email directly, view it on GitHub https://github.com/caronchen/obsidian-calibre-plugin/issues/6#issuecomment-1493503194, or unsubscribe https://github.com/notifications/unsubscribe-auth/A4YIZUXAS4QIYSW43M6UK4DW7IQLZANCNFSM5MZPAL2Q . You are receiving this because you were mentioned.Message ID: @.***>

obsidianbible avatar Apr 04 '23 15:04 obsidianbible