I have a problem with package-refresh-contents
First few times it just looked frozen on "Contacting host: melpa" so I C-g-ed it.
Now it looks more responsive but I got an error
Contacting host: [2 times]
Contacting host:
Contacting host: [2 times]
...
error in process sentinel: Error retrieving: (error connection-failed "connect" :host "" :service 443) [2 times]
When I did a package update just now, I get the following output
(Spacemacs) --> refreshing package archive: melpa... [1/3]
Contacting host:
Importing package-keyring.gpg...done
Contacting host: [2 times]
Package refresh done
(Spacemacs) --> refreshing package archive: gnu... [2/3]
Importing package-keyring.gpg...done
Contacting host:
Package refresh done
(Spacemacs) --> refreshing package archive: nongnu... [3/3]
Importing package-keyring.gpg...done
Contacting host:
Package refresh done
This is then followed by fetch, update and prepare messages for each package that has a newer versionOk, that looks like more stuff than I have in my messages buffer but I really looks like it's just the minibuffer that isn't working/refreshed (at this point)
It could be Melpa itself that is having problems. It's rare, but it happens.
Yeah, it keeps happening.
I assume your not behind a firewall that doesn't like passing HTTPS connections?
443 means you tried to use https but something in the network didn't allow it. Is what i read online just now.
443 is the port that is used to connect to Melpa to download the packages. I don't believe it's a status code, as there doesn't seem to be a http status code of that value.
If there are still issues connecting to Melpa, then try using http rather than HTTPS by running Emacs with the --insecure flag
emacs --insecure
This is not a good practice long term, so try find out what is blocking the HTTPS connection.
If it's at work, perhaps they have made changes to the company firewallYeah, I don't want to do that. I also posted this in #emacs : https://clojurians.slack.com/archives/C099W16KZ/p1646898664139849
I would think it's possible that it's a certificate issue but it's weird that emacs says nothing about it.
Oh, it looks different now!
In *Messages*
Importing package-keyring.gpg...done
Contacting host: [2 times]
Contacting host:
Contacting host: [2 times]
Package refresh done
Looks like it succeeded but the minibuffer isn't updated (still shows "Contacting host: http://melpa.org:443"I think certificate issues affected early versions of Emacs 26. Later Emacs 26 and Emacs27 onwards should be fine.