all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: joaotavora@gmail.com (João Távora)
To: 23225@debbugs.gnu.org
Subject: bug#23225: 25.1.50; url-retrieve-synchronously having trouble with some https URLs
Date: Tue, 05 Apr 2016 19:30:12 +0100	[thread overview]
Message-ID: <m2bn5nc3ij.fsf@gmail.com> (raw)

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






             reply	other threads:[~2016-04-05 18:30 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-05 18:30 João Távora [this message]
2016-04-10 23:45 ` bug#23225: 25.1.50; url-retrieve-synchronously having trouble with some https URLs 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2bn5nc3ij.fsf@gmail.com \
    --to=joaotavora@gmail.com \
    --cc=23225@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.