Closed BradVog closed 5 years ago
Followup:
I pulled the code and changed application/x-amz-json-1.1
to application/json
it fixed the issue for me. Obviously this code seems generated from an external source otherwise I would submit a pull request.
If I'm not mistaken the schemas are here https://github.com/aws/aws-sdk-net/tree/master/generator/ServiceModels/pinpoint. So if you find the json schema that is used for that call you can tweak that schema and then run the generator. This fixes then the generated code
Thanks for reporting the issue. I'll take a look into the issue.
We have identified the bug in the code generator that is causing the incorrect content-type being set. The change is going to affect more than just this service call so it is going to take a bit to test the fix.
This is fixed in https://github.com/aws/aws-sdk-net/commit/aa7b4e61b0030dcfcd924a8f1368608dcaf3fbb8 with a new releases of AWSSDK.Pinpoint 3.3.13.1
and AWSSDK.Core 3.3.32
Please let us know if the issue persists.
I'm getting the error
Unsupported Media Type
when calling theSendVoiceMessageAsync
function onAmazonPinpointSMSVoiceClient
. After some searching, I found someone else with the same problem who seemed to do some digging on what the underlying problem is:https://forums.aws.amazon.com/thread.jspa?messageID=887082
Expected Behavior
SendVoiceMessageAsync
should return a Success status code, or a status code defined in the API.Current Behavior
AmazonPinpointSMSVoiceException
is thrown with the message: Unsupported Media TypePossible Solution
The beleive following line should be
application/json
, or the server should supportapplication/x-amz-json-1.1
https://github.com/aws/aws-sdk-net/blob/master/sdk/src/Services/PinpointSMSVoice/Generated/Model/Internal/MarshallTransformations/SendVoiceMessageRequestMarshaller.cs#L58Steps to Reproduce (for bugs)
Context
This is critical blocking bug for me since this failure seems to be out of my control. Any workarounds would be very helpful
Your Environment
.NET Core Info
dotnet --info
: