charmhub api return requested base in "revision-not-found" error response data

Bug #1977774 reported by Heather Lanigan
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Snap Store Server
New
Undecided
Unassigned

Bug Description

Found with the juju bug: https://bugs.launchpad.net/juju/+bug/1975510

`juju download mysql-router --series impish --channel stable` is failing.

The equivalent curl is:

curl -s https://api.snapcraft.io/v2/charms/refresh -H 'Content-type: application/json' -d '{"context":[],"actions":[{"action":"install","instance-key":"d1708d3b-3101-4df9-87c6-9aa46651fd5d","name":"mysql-router","channel":"stable","base":{"architecture":"amd64","name":"ubuntu","channel":"21.10"}}],"fields":["bases","config-yaml","download","id","license","metadata-yaml","name","publisher","resources","revision","summary","type","version"]}'

Which returns the error: "code":"revision-not-found", "message":"No revision was found in the Store."

However, its extra.releases data includes:
            {
              "base": {
                "architecture": "amd64",
                "channel": "21.10",
                "name": "ubuntu"
              },
              "channel": "stable"
            },

Which is what was requested.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.