Jujucharms API 错误 401 未授权

Jujucharms API 错误 401 未授权

我收到了 jujucharms 的几个 API 错误:

GET https://api.jujucharms.com/charmstore/v5/~kubernetes/trusty/kubernetes-11/icon.svg 401 (Unauthorized)

直接输入 URL 时,我得到以下结果:

{ 消息:“拒绝用户“ejperezf”访问”,代码:“未经授权” }

这是使用 Maas 全新安装的 Juju。我无法添加软件包。

我也遇到了这个错误:

Access to XMLHttpRequest at 'https://api.jujucharms.com/charmstore/v5/~admin/default/meta/any?include=bundle-metadata&include=bundle-machine-count&include=charm-config&include=charm-metadata&include=charm-metrics&include=common-info&include=extra-info&include=id-revision&include=manifest&include=owner&include=published&include=resources&include=revision-info&include=stats&include=supported-series&include=tags' from origin 'https://10.110.25.37:17070' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.

当尝试添加一个 bundle 时:

cannot fetch the entity no entity data returned, can you access the charmstore?

GET https://api.jujucharms.com/charmstore/v5/bundle/openstack-base-61/meta/any?include=bundle-metadata&include=bundle-machine-count&include=charm-config&include=charm-metadata&include=charm-metrics&include=common-info&include=extra-info&include=id-revision&include=manifest&include=owner&include=published&include=resources&include=revision-info&include=stats&include=supported-series&include=tags net::ERR_FAILED

答案1

这是 GUI 版本 2.14.0 中的 API 调用问题。该问题已在 v2.15.0 中修复。使用以下方法升级 GUIjuju upgrade-gui

答案2

看起来只是过时的链接。您需要进入较新支持的超级按钮才能获得有效的图标。

https://github.com/juju/juju-gui/issues/2948

相关内容