Closed iafan closed 7 years ago
Hi,
It looks like RestJsonCaller is not handling the fact that AudioStream is transmitted in the body of the request. I'll take a look at how we can fix this, since RestJsonCaller was not prepared (yet) for this type of behaviour (Polly is a quite new service, so it hasn't been fully tried out yet in Paws).
I'll try to get this working as soon as I can
Hi,
I've got it partially working (the Audio content is served and returned correctly, but the information that comes from the headers (ContentType and RequestChars) aren't returned correctly (yet).
The changes needed are here: https://github.com/pplu/aws-sdk-perl/commit/ff1db0de4374f1ae94489127d53a1fcd2b1531d1 (more changes to come regarding this issue in https://github.com/pplu/aws-sdk-perl/compare/feat/restjson_streamingresponses)
This problem was solved in 0.32 (pushed to CPAN some months ago)
Here's a simple script I use to try Paws::Polly:
When I try to run it (I'm on Windows x64, if that matters), I get the following error:
The
ID3.....
signature suggests that I'm getting the binary MP3 content (which is what I want), but I'm not sure why Paws tries to interpret the result as JSON (and, obviously, fails).