You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by "poddm (via GitHub)" <gi...@apache.org> on 2023/03/08 22:43:06 UTC

[GitHub] [cloudstack-go] poddm opened a new pull request, #48: Fix asterisk encoding

poddm opened a new pull request, #48:
URL: https://github.com/apache/cloudstack-go/pull/48

   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](http://docs.cloudstack.apache.org/projects/archived-cloudstack-getting-started/en/latest/dev.html):
   
   > 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=’*’)”.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [cloudstack-go] poddm closed pull request #48: Fix asterisk encoding

Posted by "poddm (via GitHub)" <gi...@apache.org>.
poddm closed pull request #48: Fix asterisk encoding
URL: https://github.com/apache/cloudstack-go/pull/48


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org