alphapapa / org-web-tools

View, capture, and archive Web pages in Org-mode

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The tool is not able to insert some pages

tareefdev opened this issue · comments

First, thanks for your time and effort here, second I'm trying to move from a cloud-based read-it-later service and found org-web-tools as a powerful tool to download articles on my machine.

But I faced a problem with some links where the tool was not able to download content and instead give off the following in the buffer:

 The plain HTTP request was sent to HTTPS port

Here are some of those links:

https://www.artofmanliness.com/articles/the-problem-with-minimalism/
https://www.stilldrinking.org/programming-sucks
https://hackernoon.com/function-composition-with-lodash-d30eb50153d1
https://alistapart.com/article/cult-of-the-complex
https://medium.com/@Imaginary_Cloud/javascript-ecosystem-overview-2018-fa9f776ddf74

+1
Same issues here

First, thanks for your time and effort here

You're welcome.

I tried the first link and it worked fine for me with org-web-tools-insert-web-page-as-entry. Emacs 26.1 on Linux.

I'm also using Emacs 26.1 on Linux (arch if this makes different), I tried that link again and captured the result for you
emacs

I have no idea what's going on there. I'm guessing your Emacs is either configured incorrectly, or that the Arch build has some TLS issues. Please try to reproduce with emacs -q. If that still fails, you'll have to dig into the code and localize the problem. Given your report, it's very unlikely that it's a bug in this package. It's probably something to do with something in Emacs, or a library that Emacs uses.

Since it's not a bug in this package, I'm going to close the issue, but feel free to continue discussing it here so other users might find a solution. Thanks.

I have the same problem with emacs -q, so it would be an issue with Arch building version, I'll try to conact someone there. Thanks for your helping here.

For me the problem is on OSX, I'll try to pin down the URLs

Same here on Manjaro:

  • 4.14.94-1-MANJARO x86_64
  • GNU Emacs 26.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.30) of 2018-07-05

@tareefdev did you find any further info?

I'm guessing that your Emacs builds are not handling TLS properly, probably because the build is not configured correctly. You should probably file bug reports to the distros in question.

You can verify that the bug is not in this package by using the url-retrieve-synchronously function to try to retrieve the problematic URLs.

Same error there.
I'm using doom-emacs on NixOS and doom/am-i-secure outputs this:

Your trust roots are set up properly.

EDIT:
This commit in nixpkgs responsible for the issue in my case: NixOS/nixpkgs@2ff530e

Any actual fixes or solutions?

EDIT: I fixed it by implementing this in my own Emacs init.el: https://salsa.debian.org/debian/wl-beta/commit/16bb2bdecbeeb1825c7e7dbdbfdf78cc625a26c8

@RomeuG finally an actual fix, thanks!!