johnfactotum / foliate

Read e-books in style
https://johnfactotum.github.io/foliate/
GNU General Public License v3.0
6.42k stars 295 forks source link

failed to add Calibre-web OPDS #1366

Closed eailfly closed 3 weeks ago

eailfly commented 3 months ago

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

lukehmcc commented 1 month ago

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

eailfly commented 1 month ago

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

lukehmcc commented 1 month ago

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).

eailfly commented 1 month ago

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

johnfactotum commented 1 month ago

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

eailfly commented 1 month ago

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

johnfactotum commented 1 month ago

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.

eailfly commented 3 weeks ago

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