rexim / org-cliplink

Insert org-mode links from clipboard
323 stars 11 forks source link

failures on common websites, e.g. YouTube #125

Open notuntoward opened 4 years ago

notuntoward commented 4 years ago

I've been using org-cliplink for years, and it's worked really well on most websites. But within the last month, it's been failing on most websites. For example, if I have this URL in my kill-ring:

https://www.youtube.com/watch?v=gDAbpz98ooU&feature=youtu.be

Running org-cliplink results in this error message:

Contacting host: www.youtube.com:443
error in process sentinel: org-cliplink-extract-and-prepare-title-from-current-buffer: Args out of range: #<buffer  *http www.youtube.com:443*-508724>, 1, 2
error in process sentinel: Args out of range: #<buffer  *http www.youtube.com:443*-508724>, 1, 2

Here's my config:

(use-package org-cliplink ; make hyper link from URL in clipboard
  :config (define-key org-mode-map (kbd "C-c y") 'org-cliplink))

My emacs: GNU Emacs 26.3 (build 1, x86_64-w64-mingw32) of 2019-08-29

pharcosyle commented 4 years ago

Same for me

marcw commented 3 years ago

Same.

x-ji commented 3 years ago

Seems to be duplicate of https://github.com/rexim/org-cliplink/issues/123 Also encountering this error.

rexim commented 3 years ago

I tried to reproduce that problem on my side several times, but no luck. Could you guys please give more info on your environment. The original submitter seems to use Windows. Does everyone who experience this problem use Windows?

x-ji commented 3 years ago

What I posted in the linked duplicate:

Happens to me if I try any Github link.

Contacting host: github.com:443
error in process sentinel: org-cliplink-extract-and-prepare-title-from-current-buffer: Args out of range: #<buffer  *http github.com:443*>, 1, 2
error in process sentinel: Args out of range: #<buffer  *http github.com:443*>, 1, 2
error in process sentinel: org-cliplink-extract-and-prepare-title-from-current-buffer: Args out of range: #<buffer  *http github.com:443*-484244>, 1, 2
error in process sentinel: Args out of range: #<buffer  *http github.com:443*-484244>, 1, 2

Version info:

Org mode version 9.4 (9.4-elpaplus @ /Users/jx/.emacs.d/elpa/develop/org-plus-contrib-20200914/)
GNU Emacs 27.1 (build 1, x86_64-apple-darwin18.7.0, Carbon Version 158 AppKit 1671.6) of 2020-08-16

I also tried the URLs posted by @stefanfisk and it was the same: The SE link worked but the ITRevolution one didn't.

Interestingly, when I quit Emacs, it seems that one of the processes was still running for some reason (this one didn't give the above error message), and Emacs asked me if it was fine to exit.

x-ji commented 3 years ago

The OS is MacOS

marcw commented 3 years ago

macOS + emacsplus 27.1 + doom-emacs (latest)

Bounga commented 3 years ago

I'm also having this issue. I think it's macOS related. Maybe HTTP Certifcates bundled with MacOS?

rexim commented 3 years ago

I would really like to fix those issues for you, but unfortunately I was born in a third world country and I cannot afford any Apple products. :(

Feel free to submit any Pull Requests with a fix. I'll also add the hacktoberfest topic to this repo so you will even get a chance to get a cool T-shirt for that. :)

AtomicNess123 commented 2 years ago

Feeling with you all Ukranians and Russians.

kostajh commented 1 year ago

I'm not seeing this on macOS 13, so maybe we close this and see if someone reopens with a new bug report?