Skip to content

Conversation

@poddm
Copy link
Contributor

@poddm poddm commented Mar 8, 2023

Resolving errors when Configuration values contain an asterisk.

Error: CloudStack API error 401 (CSExceptionErrorCode: 0): unable to verify user credentials and/or request signature

Found the following note here:

If you have API calls which contain * (asterisk) characters, you will need to add the option “safe = ‘’” for the URL encoding. The reason is that Python’s urllib will encode * characters by default, while CloudStack’s internal encoder does not encode them; this results in an authentication failure for your API call. In the above you would replace “urllib.quote_plus(request[k])” with “urllib.quote_plus(request[k], safe=’’)”.

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

Successfully merging this pull request may close these issues.

1 participant