Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

US target is not working. #19

Open
Nik-- opened this issue Nov 7, 2021 · 0 comments
Open

US target is not working. #19

Nik-- opened this issue Nov 7, 2021 · 0 comments

Comments

@Nik--
Copy link

Nik-- commented Nov 7, 2021

The US target has an outdated URL. Initializing the app fails with this problem:

Now generating POST JSON Data for accessRules
EXPECTED value GOT EOF
In order to validate the generated consumerKey, visit the validation url at:
EXPECTED value GOT EOF

This patch fixes the issue:

diff --git a/ovh-api-bash-client.sh b/ovh-api-bash-client.sh
index 34910d7..72fbcfc 100755
--- a/ovh-api-bash-client.sh
+++ b/ovh-api-bash-client.sh
@@ -14,12 +14,12 @@ readonly TARGETS=(CA EU US)
 declare -A API_URLS
 API_URLS[CA]="https://ca.api.ovh.com/1.0"
 API_URLS[EU]="https://api.ovh.com/1.0"
-API_URLS[US]="https://api.ovhcloud.com/1.0"
+API_URLS[US]="https://api.us.ovhcloud.com/1.0"
 
 declare -A API_CREATE_APP_URLS
 API_CREATE_APP_URLS[CA]="https://ca.api.ovh.com/createApp/"
 API_CREATE_APP_URLS[EU]="https://api.ovh.com/createApp/"
-API_CREATE_APP_URLS[US]="https://api.ovhcloud.com/createApp/"
+API_CREATE_APP_URLS[US]="https://api.us.ovhcloud.com/createApp/"
 
 readonly API_URLS
 readonly API_CREATE_APP_URLS
@denouche denouche mentioned this issue Jan 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant