Open MullPointer opened 7 months ago
In my own node project I found I could send an AWS Polly request successfully using the credentials file if I left out the credentials value on the Polly constructor, but not if I specified null values for the access and secret keys as tts-cli seems to do.
That is with this constructor:
const client = new Polly({
region: "eu-west-2",
credentials: {
accessKeyId: null,
secretAccessKey: null
}
});
getSynthesizeSpeechUrl would give me the same error: "Resolved credential object is not valid".
But if I take out the credentials parameter entirely it works. Maybe in tts-cli credentials could only be sent if set?
I am able to run tts-cli successfully if I explicitly specify an AWS access-key and secret-key on the command line. But if I put those same values in the [default] section of a ~/.aws/credentials file then I get a "Resolved credential object is not valid" error. The credentials file appears to be valid as it works with "aws sts get-caller-identity" and with my own node.js project using AWS Polly.
~/.aws/credentials
no AWS environment variables are set.