0

我正在尝试登录 Cloud Foundry 端点。但是当我通过 Cloud Foundry CLI 连接时,我收到以下错误消息:

C:\Users\abc>cf login -a https://xxx.predix-
uaa.run.aws-usw02-pr.ice.predix.io
API endpoint: https://xxx.predix-uaa.run.aws-us
w02-pr.ice.predix.io


Not logged in. Use 'cf login' to log in.
FAILED
Error performing request: Get /login: unsupported protocol scheme ""

请帮忙!

4

1 回答 1

0

The issue is likely that you are not specifying your CF API endpoint url. Please contact your platform operator to confirm what it should be.

We'll improve the error message, but what seems to be happening is that the cf CLI tries to retrieve a json configuration from [api-endpoint]/v2/info, but not getting the response it expects.
It then builds a URL to the login endpoint from the "authorization_endpoint" that should be advertised in that json configuration. As that field is not in your response, it tries to access "/login" instead of e.g. "https://xxx.predix-uaa.run.aws-usw02-pr.ice.predix.io/login", causing the error.

CF endpoint urls generally start with "api.". In fact, I've never seen one starting differently.

于 2017-05-24T02:14:08.163 回答