GNU bug report logs -
#34341
26.1; url-retrieve-synchronously returns blank buffer
Previous Next
Reported by: Laurent Charignon <l.charignon <at> gmail.com>
Date: Wed, 6 Feb 2019 07:11:01 UTC
Severity: normal
Tags: fixed
Merged with 39158
Found in version 26.1
Fixed in versions 26.3, 27.1
Done: Noam Postavsky <npostavs <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
Message #68 received at control <at> debbugs.gnu.org (full text, mbox):
unarchive 34341
forcemerge 34341 39158
quit
Ernesto Alfonso <erjoalgo <at> gmail.com> writes:
> url-retrieve-synchronously unexpectedly returns an empty buffer:
>
> emacs -Q --eval '(with-current-buffer (url-retrieve-synchronously "
> https://google.com") (print (buffer-string)))' --batch
> Contacting host: google.com:443
>
> ""
>
> If I add (sit-for 2) in url-retrieve-synchronously after the (url-retrieve
> ...) call:
>
> (setq asynch-buffer
> (url-retrieve url (lambda (&rest ignored)
> (url-debug 'retrieval "Synchronous fetching done (%S)"
> (current-buffer))
> (setq retrieval-done t
> asynch-buffer (current-buffer)))
> nil silent inhibit-cookies))
> (sit-for 2)
>
> then I see the expected output.
>
>
> In GNU Emacs 26.1 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.5)
Looks like Bug#34341, try upgrading to 26.3, or put
(setq gnutls-algorithm-priority "NORMAL:-VERS-TLS1.3")
in your init file as a temporary workaround.
This bug report was last modified 4 years and 193 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.