Im fairly new to linux Ubuntu and i was trying to install a few apps from the snap store.
Im using Ubuntu since a month and have played around a bit and reinstalled Ubuntu again. On my new installation the ubuntu store is not working at all with my broadband connection through a wifi adapter. However if i use my Phone’s Sim Card data then the store works fine and im even able to do snap refresh without errors. I understand that there is some problem with the network itself but i did not face any issue with the same network on the same adapter on the previous installation of Ubuntu.
Currently if i do snap refresh this is what i get:
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”
Getting same error in the store as well. Although i was able to install a few apps initially right after the installation.
My network speed on 5G:
131.9 Megabits per second
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"
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.
My symptoms are identical to @mergwyn above. About the middle of March 2022 I stopped having access to api.snapcraft.io. I always get HTTP 408 errors when I do ‘snap refresh’. No end in sight after months of errors. Something pervasive is going on at the Canonical end which affects many more people than just me. What is the cause? When will it finally be fixed?
Hello, any update about this? I’m getting the same error whenever I try to install something with snap
error: cannot install "joplin-james-carroll": cannot query the store for updates: got unexpected
HTTP status code 408 via POST to "https://api.snapcraft.io/v2/snaps/refresh"
It’s still the case that 408 errors are expected to be temporary, and usually go away after a few hours. However, with that specific package, you may prefer to try sudo snap install joplin-desktop instead, at least I’d prefer it, because I’m trying to get people to use the newer package name overtime , but it might have the benefit of working around your problem quicker too!
Oh hi! hehe …
I tried that but it’s not working as well … It’s not just about joplin… I tried installing slack and other apps and nothing is working since yesterday noon, and while researching online it seemed to be something that has been happening since March
error: cannot install "joplin-desktop": cannot query the store for updates: got unexpected HTTP
status code 408 via POST to "https://api.snapcraft.io/v2/snaps/refresh"
The problem is not in Ubuntu or any server. It had something to do with my internet router settings.
I figured out some the things which i had done in that period of time that could have affected the server connection with my system. So one thing i did was change the ports. I called my ISP and he fixed the router and after that i did not encounter this issue even once.
Thanks for being so active. If not this way then i would have eventually solved it through your help.
thanks @easmar - are you also still seeing problems when using snap install?
Because snapd uses the exact same API we are testing with the curl commands.
If snap install is consistently giving problems while the curl commands don’t, I would think it’s something with snapd’s network or proxy configuration.
@roadmr yes it is still giving me the error!
Is there anyway to investigate the proxy configuration if that might be the issue?
and thanks for your help!
@roadmr Thank you for your feedback, both returned an error so no proxy set.
I came up with a temporary solution just to get the stuff I need, which is to connect my computer to my mobile 4g, and try from there, and it worked.
So i’m not sure what the problem is, it can’t be my internet provider because I am using the same connection on my laptop and its working fine with snap (but there I am using an older version of ubuntu).
So i’m not sure what the problem is, however this is an idea for those who are looking for this error like I was and couldn’t find any solution!
I found a strange thing that if I manually run snap download <app> it will succeed, however snap refresh or request for a dependence it will throw HTTP 408 exception.