I started seeing the same errors early in the morning of 15 March and have not been able to make snap refresh
work since. This is the error code:
$ sudo snap refresh
error: cannot refresh: cannot query the store for updates: got unexpected HTTP
status code 408 via POST to "https://api.snapcraft.io/v2/snaps/refresh"
I also tried this:
$ snap debug connectivity
Connectivity status:
* api.snapcraft.io: unreachable
error: 1 servers unreachable
But ping does work
$ ping -c1 -q api.snapcraft.io
PING api.snapcraft.io (185.125.188.60) 56(84) bytes of data.
--- api.snapcraft.io ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 13.506/13.506/13.506/0.000 ms
What is peculiar is that I have an lxc container which is set up to use a VPN and that works fine. Does this point the finger at my Internet connection? I have not knowingly changed anything to do with network configuration for a good while, and don’t have a firewall set up. I use the virginmedia ISP in the UK - do I need to make sure certain ports are open and/or being forwarded.
Any pointers / suggestions gratefully received.