1
votes

I am getting the below error Get /login: unsupported protocol scheme ""

when I am trying to login with cloud foundry cli..

I am typing cf login , it displays the api endpoint and the below error

Warning: Your targeted API's version (3.59.0) is less than the minimum supported API version (3.85.0). Some commands may not function correctly.

Get /login: unsupported protocol scheme ""
FAILED

Kindly help on this.

2
A few things: 1.) Run cf login -v. That should give you more debugging information which will likely provide clues. 2.) Your cf cli seems significantly newer than your target CF installation. Either upgrade your CF installation or try using an older cf cli version. Otherwise, the cf cli will fail when it requires a feature not available in your CF version. - Daniel Mikusa
Thanks @DanielMikusa for the reply. I am pretty new to Cloud Foundry. Could you please tell me how I can upgrade my cf installation? - Sourabh Roy
That entirely depends on how you installed it. It's not a simple question, and there's unfortunately not a simple answer. The best I can say is to refer to the documentation for the tool you used to install it. If you didn't install it, like you're using a public service or CF is operated by some other team at your company then you'd need to reach out to that team and request it. Hope that helps! - Daniel Mikusa
I uninstalled the the cli7 version and updated the default version which came out to be 6.53.0 and i am able to login with that. - Sourabh Roy
Again, include output of what you're trying to do with the -v flag. That will provide details on what the cf cli is doing. - Daniel Mikusa

2 Answers

2
votes

downgrade cli from 7.0 to 6.0. It worked for me

1
votes

Downgrade to v6 worked. Using homebrew:

brew uninstall cloudfoundry/tap/cf-cli@7

brew install cloudfoundry/tap/cf-cli