unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#23225: 25.1.50; url-retrieve-synchronously having trouble with some https URLs
@ 2016-04-05 18:30 João Távora
  2016-04-10 23:45 ` Alexis
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: João Távora @ 2016-04-05 18:30 UTC (permalink / raw)
  To: 23225

Hello maintainers,

In the latest trunk, url-retrieve-synchronously is having trouble with
some https URLS. In the Emacs -Q scratch buffer, this returns the empty string:

  (with-current-buffer (url-retrieve-synchronously
    "https://melpa.org/packages/yascroll-20150315.605.el")
    (buffer-string))

But this works perfectly

  (with-current-buffer (url-retrieve-synchronously "https://google.com/")
    (buffer-string))

  (with-current-buffer (url-retrieve-synchronously "http://google.com/")
    (buffer-string))

No ideia why it works on google and gmail.

The misbehaving propagated silently and I came across this using M-x
package-install RET ... RET, which magically compiles a 0-byte package.

I think the protocol for url-retrieve-synchornously could be
revised. Its users seem to expect it to return nil or at least a
non-buffer if something went wrong, but that's clearly not what happened
here. Perhaps it should error.

Anyway, the buffer process is failing silently. A lower-level `url-retrieve'
doesn't even call its callback.

I'll try to debug a bit further if I find the time, in the meantime
here's a report.

João






^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2016-08-09 12:57 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-05 18:30 bug#23225: 25.1.50; url-retrieve-synchronously having trouble with some https URLs João Távora
2016-04-10 23:45 ` Alexis
2016-06-04 16:17 ` Tao Fang
2016-06-04 16:23 ` Noam Postavsky
2016-06-11  4:00   ` Chunyang Xu
2016-06-11 12:47     ` Noam Postavsky
2016-06-11 12:54       ` Chunyang Xu
2016-06-11 13:36         ` Noam Postavsky
2016-06-11 13:59           ` Chunyang Xu
2016-07-30 16:44             ` Tao Fang
2016-08-06 23:56               ` Tao Fang
2016-08-09 12:57                 ` Noam Postavsky

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).