-
Notifications
You must be signed in to change notification settings - Fork 849
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
Automation GetContent functions wrongly use ByUnmarshallingJSON #2486
Comments
I believe this is a problem with the swagger as the return type specified is string, needs confirmation. |
Investigating, it might be an issue with the generator. If so will have a fix in the next sdk release. |
@bgelens out of curiosity are you receiving any content type header ? |
@vladbarosan I get |
Just fyi, with runbookdraft and runbook there is no unmarshaling happening. The content type there is text/powershell as well. |
This has been fixed in https://github.com/Azure/azure-sdk-for-go/releases/tag/v20.0.0 |
Awesome! Thanks 👍 |
Bug Report
.../services/automation/mgmt/2015-10-31/automation
18.0.0
go version
- go version go1.10.3 windows/amd6Trying to make use of
GetContent
fromdscconfiguration
. The api call will return just a string and not a json body.GetContentResponder
however is trying to Unmarshal a json object resulting in an error.What did you expect or want to happen?
Just return the string, do not attempt to unmarshal as it is not a json object that is returned
How can we reproduce it?
Call the GetContent function.
The text was updated successfully, but these errors were encountered: