Upgrading a local charm fails with
`ERROR missing base name or channel not valid`
Same charm upgrade worked on 2 out of 3 models. But on the third one it fails.
Example:
`$ juju upgrade-charm acme --path ./acme_ubuntu-20.04-amd64.charm --debug`
```
11:42:34 INFO juju.cmd supercommand.go:56 running juju [2.9.37 51672c0e4243f0d0e73f13cf1bbf5c5a9a720632 gc go1.18.8]
11:42:34 DEBUG juju.cmd supercommand.go:57 args: []string{"/snap/juju/21315/bin/juju", "upgrade-charm", "acme", "--path", "./acme_ubuntu-20.04-amd64.charm", "--debug"}
11:42:34 INFO juju.juju api.go:86 connecting to API addresses: [192.168.211.241:17070]
11:42:34 DEBUG juju.api apiclient.go:1153 successfully dialed "wss://192.168.211.241:17070/model/8056ecc7-f345-40c3-8491-89b53b8746a1/api"
11:42:34 INFO juju.api apiclient.go:688 connection established to "wss://192.168.211.241:17070/model/8056ecc7-f345-40c3-8491-89b53b8746a1/api"
11:42:34 DEBUG juju.api monitor.go:35 RPC connection died
ERROR missing base name or channel not valid
11:42:34 DEBUG cmd supercommand.go:537 error stack:
missing base name or channel not valid
github.com/juju/juju/api/client/application.(*Client).GetCharmURLOrigin:277:
github.com/juju/juju/cmd/juju/application.(*refreshCommand).Run:339:
```
Today I got similar error when using `export-bundle`.
```
$ juju export-bundle --filename my-bundle.yaml
ERROR extracting series from application description missing base name or channel not valid (not valid)
```