ERROR resolving with preferred channel: Post "https://api.charmhub.io/v2/charms/refresh": dial tcp: lookup api.charmhub.io on 10.152.183.10:53: server misbehaving

Greetings to all,

I was trying to deploy kubeflow using below command

juju deploy kubeflow --trust --channel 1.9/stable

But it always shows:

ERROR resolving with preferred channel: Post "https://api.charmhub.io/v2/charms/refresh": dial tcp: lookup api.charmhub.io on 10.152.183.10:53: server misbehaving

Could you please help me ? Thanks in advance!

Sometimes it shows:

ERROR dial tcp 127.0.0.1:36685: connect: connection refused

Your controller is having difficulty connecting to CharmHub to find and download the charm you’re trying to deploy. Usually this is a transient failure if CharmHub is having problems. If it’s not transient, check the connectivity of the controller to the outside world.

Bonjour, I had the same problem with juju 3.4/edge & 3.5/edge but it works with the juju 3.5 stable version.

So choose a stable version of juju and it should work.