IBM-Cloud / bluemix-go

Go library for accessing the Bluemix API
Apache License 2.0
37 stars 88 forks source link

GetAccountType API fails with error UAAEndpoint doesn't exists #359

Open bkhadars opened 2 years ago

bkhadars commented 2 years ago

I am trying to deploy openshift cluster in jp-osa region , as part of the cluster deployment we have a pre-check to verify the account type of the user..

while deploying cluster in the us-south, eu-gb, eu-db the account verification happens succesfully.. but when trying the cluster deployment thein jp-osa GetAccountType API fails with below error..

UAA endpoint doesn't exist for region: "jp-osa"

while debugging the code I found that there is no UAA endpoint defined for the jp-osa region.. It can be found from the below line https://github.com/IBM-Cloud/bluemix-go/blob/34645883de47858a23b120177af7e73bbd8a4dac/endpoints/endpoints.go#L63

How to resolve this error? Does new UAA endpoint should be added to code??