org-cliplink icon indicating copy to clipboard operation
org-cliplink copied to clipboard

failures on common websites, e.g. YouTube

Open notuntoward opened this issue 5 years ago • 11 comments

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

notuntoward avatar Jun 06 '20 16:06 notuntoward

Same for me

pharcosyle avatar Sep 05 '20 09:09 pharcosyle

Same.

marcw avatar Sep 15 '20 16:09 marcw

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

x-ji avatar Sep 19 '20 20:09 x-ji

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?

rexim avatar Sep 21 '20 13:09 rexim

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 avatar Sep 21 '20 13:09 x-ji

The OS is MacOS

x-ji avatar Sep 21 '20 13:09 x-ji

macOS + emacsplus 27.1 + doom-emacs (latest)

marcw avatar Sep 22 '20 12:09 marcw

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

Bounga avatar Oct 06 '20 14:10 Bounga

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

rexim avatar Oct 12 '20 10:10 rexim

Feeling with you all Ukranians and Russians.

AtomicNess123 avatar Apr 13 '22 10:04 AtomicNess123

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

kostajh avatar Dec 05 '22 18:12 kostajh