-
Notifications
You must be signed in to change notification settings - Fork 20
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
release::releases::get_logs()
returns unprintable/garbled string
#74
Comments
The python client explicitly sets |
Worth noting that the OpenAPI spec does state that the request produces "/{organization}/{project}/_apis/release/releases/{releaseId}/logs": {
"get": {
...
"description": "Get logs for a release Id.",
"operationId": "Releases_Get Logs",
"produces": [
"application/zip"
],
...
"responses": {
"200": {
"description": "successful operation",
"schema": {
"type": "string",
"format": "Stream"
}
}
}, |
Added an example |
release::releases::get_logs()
is currently defined to returnResult<String>
. However, it currently returns a lot of unprintable/garbled data...Inspection of the response headers shows that the data is in compressed format:
Need to decide whether this API function should:
content-type
header and doing unzip before returning the data asResult<String>
Result<Vec<u8>>
, leaving it up to the application to decompress (if required - app might just want to write the logs as a compressed file...)I expect that this might apply to other API functions too.
The text was updated successfully, but these errors were encountered: