Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

void-variable url #16

Open
penguinsam opened this issue May 18, 2022 · 0 comments
Open

void-variable url #16

penguinsam opened this issue May 18, 2022 · 0 comments

Comments

@penguinsam
Copy link

I found this error when I tried to archive page using your request-url-readable function:

Debugger entered--Lisp error: (void-variable url)
  (let* ((data (car (cdr (plist-member --cl-rest-- ':data)))) (web (org-web-tools--eww-readable data)) (title (car web)) (html (cdr web)) (shrface-org-title title) (shrface-request-url url)) (shrface-html-export-as-org html))
  (lambda (&rest --cl-rest--) "\n\n(fn &key DATA &allow-other-keys)" (let* ((data (car (cdr (plist-member --cl-rest-- ...)))) (web (org-web-tools--eww-readable data)) (title (car web)) (html (cdr web)) (shrface-org-title title) (shrface-request-url url)) (shrface-html-export-as-org html)))(:data "<!DOCTYPE html>\n<html class=\"client-nojs\" lang=\"en..." :symbol-status success :error-thrown nil :response #s(request-response :status-code 200 :history nil :data "<!DOCTYPE html>\n<html class=\"client-nojs\" lang=\"en..." :error-thrown nil :symbol-status success :url https://en\.wikipedia\.org/wiki/Emacs :done-p nil :settings (:parser buffer-string :headers (("User-Agent" . "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/53...")) :sync nil :success (lambda (&rest --cl-rest--) "\n\n(fn &key DATA &allow-other-keys)" (let* ((data (car ...)) (web (org-web-tools--eww-readable data)) (title (car web)) (html (cdr web)) (shrface-org-title title) (shrface-request-url url)) (shrface-html-export-as-org html))) :error #f(compiled-function (&rest rest) #<bytecode 0xcd9ddef8c755581>) :url "https://en.wikipedia.org/wiki/Emacs" :response #8 :encoding utf-8) :-buffer #<killed buffer> :-raw-header "HTTP/1.1 200 OK\ndate: Tue, 17 May 2022 14:39:45 GM..." :-timer nil :-backend curl))
  apply((lambda (&rest --cl-rest--) "\n\n(fn &key DATA &allow-other-keys)" (let* ((data (car (cdr (plist-member --cl-rest-- ...)))) (web (org-web-tools--eww-readable data)) (title (car web)) (html (cdr web)) (shrface-org-title title) (shrface-request-url url)) (shrface-html-export-as-org html))) (:data "<!DOCTYPE html>\n<html class=\"client-nojs\" lang=\"en..." :symbol-status success :error-thrown nil :response #s(request-response :status-code 200 :history nil :data "<!DOCTYPE html>\n<html class=\"client-nojs\" lang=\"en..." :error-thrown nil :symbol-status success :url https://en\.wikipedia\.org/wiki/Emacs :done-p nil :settings (:parser buffer-string :headers (("User-Agent" . "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/53...")) :sync nil :success (lambda (&rest --cl-rest--) "\n\n(fn &key DATA &allow-other-keys)" (let* ((data ...) (web ...) (title ...) (html ...) (shrface-org-title title) (shrface-request-url url)) (shrface-html-export-as-org html))) :error #f(compiled-function (&rest rest) #<bytecode 0xcd9ddef8c755581>) :url "https://en.wikipedia.org/wiki/Emacs" :response #10 :encoding utf-8) :-buffer #<killed buffer> :-raw-header "HTTP/1.1 200 OK\ndate: Tue, 17 May 2022 14:39:45 GM..." :-timer nil :-backend curl)))
  request--callback(#<killed buffer> :parser buffer-string :headers (("User-Agent" . "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/53...")) :sync nil :success (lambda (&rest --cl-rest--) "\n\n(fn &key DATA &allow-other-keys)" (let* ((data (car (cdr (plist-member --cl-rest-- ...)))) (web (org-web-tools--eww-readable data)) (title (car web)) (html (cdr web)) (shrface-org-title title) (shrface-request-url url)) (shrface-html-export-as-org html))) :error #f(compiled-function (&rest rest) #<bytecode 0xcd9ddef8c755581>) :url "https://en.wikipedia.org/wiki/Emacs" :response #s(request-response :status-code 200 :history nil :data "<!DOCTYPE html>\n<html class=\"client-nojs\" lang=\"en..." :error-thrown nil :symbol-status success :url https://en\.wikipedia\.org/wiki/Emacs :done-p nil :settings (:parser buffer-string :headers (("User-Agent" . "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/53...")) :sync nil :success (lambda (&rest --cl-rest--) "\n\n(fn &key DATA &allow-other-keys)" (let* ((data (car ...)) (web (org-web-tools--eww-readable data)) (title (car web)) (html (cdr web)) (shrface-org-title title) (shrface-request-url url)) (shrface-html-export-as-org html))) :error #f(compiled-function (&rest rest) #<bytecode 0xcd9ddef8c755581>) :url "https://en.wikipedia.org/wiki/Emacs" :response #15 :encoding utf-8) :-buffer #<killed buffer> :-raw-header "HTTP/1.1 200 OK\ndate: Tue, 17 May 2022 14:39:45 GM..." :-timer nil :-backend curl) :encoding utf-8)
  apply(request--callback #<killed buffer> (:parser buffer-string :headers (("User-Agent" . "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/53...")) :sync nil :success (lambda (&rest --cl-rest--) "\n\n(fn &key DATA &allow-other-keys)" (let* ((data (car (cdr ...))) (web (org-web-tools--eww-readable data)) (title (car web)) (html (cdr web)) (shrface-org-title title) (shrface-request-url url)) (shrface-html-export-as-org html))) :error #f(compiled-function (&rest rest) #<bytecode 0xcd9ddef8c755581>) :url "https://en.wikipedia.org/wiki/Emacs" :response #s(request-response :status-code 200 :history nil :data "<!DOCTYPE html>\n<html class=\"client-nojs\" lang=\"en..." :error-thrown nil :symbol-status success :url https://en\.wikipedia\.org/wiki/Emacs :done-p nil :settings #3 :-buffer #<killed buffer> :-raw-header "HTTP/1.1 200 OK\ndate: Tue, 17 May 2022 14:39:45 GM..." :-timer nil :-backend curl) :encoding utf-8))
  request--curl-callback("https://en.wikipedia.org/wiki/Emacs" #<process request curl> "finished\n")
  apply(request--curl-callback ("https://en.wikipedia.org/wiki/Emacs" #<process request curl> "finished\n"))
  #f(compiled-function (&rest args2) #<bytecode -0x1ea12a2eaf4ae460>)(#<process request curl> "finished\n")

Any idea is it related to shr or org-web-tools? Any idea?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant