alphapapa / org-web-tools

View, capture, and archive Web pages in Org-mode
GNU General Public License v3.0
647 stars 33 forks source link

Error when trying to use org-web-tools-archive-attach #59

Closed birchpoplar closed 1 year ago

birchpoplar commented 1 year ago

Hi, I'm getting the error below when trying this function--I have the cursor in an org file, and running this with eval-expression:

(org-web-tools-archive-attach "https://karpathy.github.io/2021/03/27/forward-pass/")

Error is:

org-web-tools-archive--archive.is-archive-url: Wrong type argument: stringp, nil

Am pretty sure I'm calling the function correctly. I get the following trace:

Debugger entered--Lisp error: (wrong-type-argument stringp nil)
  org-web-tools-archive--archive.is-url-id("https://karpathy.github.io/2021/03/27/forward-pass...")
  org-web-tools-archive--archive.is-archive-url("https://karpathy.github.io/2021/03/27/forward-pass...")
  org-web-tools-archive--archive.is("https://karpathy.github.io/2021/03/27/forward-pass...")
  org-web-tools-attach-url-archive--1("https://karpathy.github.io/2021/03/27/forward-pass...")
  org-web-tools-archive-attach("https://karpathy.github.io/2021/03/27/forward-pass...")
  eval-expression((org-web-tools-archive-attach "https://karpathy.github.io/2021/03/27/forward-pass...") nil nil 127)
  funcall-interactively(eval-expression (org-web-tools-archive-attach "https://karpathy.github.io/2021/03/27/forward-pass...") nil nil 127)
  command-execute(eval-expression)
alphapapa commented 1 year ago

Hi,

Unfortunately the archive.is-related code hasn't worked for a long time due to changes on their end. I've pushed a new version that defaults to using Wget and Tar to archive the pages. Thanks.