foliate icon indicating copy to clipboard operation
foliate copied to clipboard

failed to add Calibre-web OPDS

Open eailfly opened this issue 1 year ago • 7 comments

Describe the bug When add OPDS from Calibre-web, shows Load failed\nundefined on UI, and ther's a "Failed to load resouce: Unspecified proxy lookup failure" in Console window

To Reproduce Steps to reproduce the behavior:

  1. add Calibre-web OPDS
  2. See error

Expected behavior See Calibre-web's OPDS

Screenshots 图片

Version: System: Arch Linux rolling Desktop: KDE Session: KDE (wayland) Language: zh_CN.UTF-8

  • Foliate 3.1.1
  • GJS 1.80.02
  • GTK 4.14.4
  • Adwaita 1.5.2
  • GLib 2.80.4
  • WebKitGTK 2.44.2

eailfly avatar Jul 28 '24 07:07 eailfly

What address are you using? Like how is this being authenticated?

lukehmcc avatar Oct 06 '24 22:10 lukehmcc

no authenticate needed, I can download the opds.atom file directly through web browser, the address is http://192.168.50.24:8083/opds

eailfly avatar Oct 11 '24 05:10 eailfly

Just a sanity check. Can you download it because you're already authenticated, or because your calibre web has authentication disabled? (Like does it work from a private window without any login).

lukehmcc avatar Oct 11 '24 19:10 lukehmcc

I can download the file using curl, so pretty sure has authentication disabled

eailfly avatar Oct 14 '24 11:10 eailfly

Does it load if you open the URL in Epiphany (GNOME Web)?

johnfactotum avatar Oct 18 '24 04:10 johnfactotum

this is the problem, I use KDE, have no Epiphany installed :(

eailfly avatar Oct 18 '24 05:10 eailfly

Well, the URL is fetched within the WebKitGTK WebView with a simple fetch(). Since the error says "Unspecified proxy lookup failure", it's probably something related to proxy, though it's unclear to me whether there is something that needs to be done in Foliate.

From what I gather (though I could be wrong), Epiphany also relies on WebKitGTK and doesn't seem have it's own proxy settings, and WebKitGTK seems to get its proxy settings from org.gnome.system.proxy.

So if the issue is indeed something related to proxy configuration, you can use gsettings to configure properties in org.gnome.system.proxy.

johnfactotum avatar Oct 18 '24 06:10 johnfactotum

since I use foliate on KDE which may cause issues hard to debug, I can leave it without opds, still thank you guys for the help

eailfly avatar Oct 26 '24 05:10 eailfly