Closed klinquist closed 7 years ago
@klinquist
In the callback you provide to synthesizeSpeech
, can you log this.httpResponse.body.toString()
?
@klinquist
It might also be helpful to log this.httpResponse.headers
. The body should be a Buffer if the operation succeeds.
Is this happening intermittently? I just ran the operation with the exact same parameters in us-east-1
and node 6.9.1
. Can you share your environment details and region?
us-west-2, node 6.9.4. OS X. Not intermittent - happens every time.
body toString is ```this.httpResponse.body.toString() "<?xml version="1.0" encoding="UTF-8"?>
AuthorizationHeaderMalformed
Aah - nevermind. Looks like my AWS.config was setting the endpoint (used the same config as I was using for an s3 api call).
I'm trying to use AWS Polly - the exact example provided in the docs:
I'm getting an error into the callback:
{"message":"Unexpected token < in JSON at position 0","code":"SyntaxError","time":"2017-02-09T18:38:06.459Z","statusCode":400,"retryable":false,"retryDelay":26.743564588273294}
Using the latest aws-sdk.