Hi Lars,
Thanks for looking into this.
I did the following, pls help to see if it helps.
1. Emacs from Homebrew Install Emacs using Homebrew in MacOS Big Sur.
- Install using
brew install emacs
- Got an Emacs in Terminal withou GUI
- Pasted the following
(setq url-debug t)
(defun http-handle-response (status method &optional url bufname raw stay-in-window)
"Switch to the buffer returned by `url-retreive'.
The buffer contains the raw HTTP response sent by the server."
(message (format "%s" raw)))
(display-buffer
(let* ((url "
https://identity.xero.com/connect/token")
(method "POST"))
(url-retrieve url 'http-handle-response (append (list method url (format "*HTTP %s %s*" method url)) '())))
t)
- Got response very quickly in the buffer displayed (expected behaviour)
(setq url-debug t)
(defun http-handle-response (status method &optional url bufname raw stay-in-window)
"Switch to the buffer returned by `url-retreive'.
The buffer contains the raw HTTP response sent by the server."
(message (format "%s" raw)))
(display-buffer
(let* ((url "
https://identity.xero.com/connect/token")
(method "POST"))
(url-retrieve url 'http-handle-response (append (list method url (format "*HTTP %s %s*" method url)) '())))
t)
- start Emacs from command line with:
/Applications/Emacs.app/Contents/MacOS/Emacs --no-init
- execute the above script
- I got the following:
You could see that the *http... buffer is always empty and stay like that for some time (maybe 30s), and eventually, the mini buffer showed a nil.
Could this be an issue only for the binary from emacsformacosx?
Regards,
Rui