POST request to install an already installed snap yields misleading error message
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
snapd |
Triaged
|
Medium
|
Unassigned |
Bug Description
Making a POST request to the Snapd REST API to install a snap that is already installed yields a message saying there are no results from the store.
# snap install hello-world
hello-world 6.4 from Canonical✓ installed
# sudo curl -sS --unix-socket /run/snapd.socket http://
{
"type": "error",
"status-code": 400,
"status": "Bad Request",
"result": {
"message": "cannot install \"hello-world\": no install/refresh information results from the store"
}
}
It's probably better to return the same response as from snap:
# snap install hello-world
snap "hello-world" is already installed, see 'snap help refresh'
This issue may be related to this bug report: https:/
Changed in snapd: | |
importance: | Undecided → Medium |
status: | New → Triaged |