Skip to content
This repository has been archived by the owner on Oct 4, 2022. It is now read-only.

Aws - Amplify frame work interaction voice enabled not working with Lex bot #18

Closed
rushesh opened this issue Apr 7, 2020 · 7 comments
Closed

Comments

@rushesh
Copy link

rushesh commented Apr 7, 2020

I am using aws-amplify interaction : https://aws-amplify.github.io/docs/
Interaction code is :

const customVoiceConfig = {
silenceDetectionConfig: {
time: 2000,
amplitude: 0.2
}
}
I am following this link : https://aws-amplify.github.io/docs/js/interactions

While using voice enabled interaction I am getting this error. When I press the voice button.

[enter image description here][1]Aws_restJson1_1.ts:834 Uncaught (in promise) **BadRequestException: Invalid Request: The header x-amz-content-sha256 must be set to the literal string** UNSIGNED-PAYLOAD.
    at http://localhost:3000/static/js/1.chunk.js:91237:42
    at step (http://localhost:3000/static/js/1.chunk.js:318206:17)
    at Object.next (http://localhost:3000/static/js/1.chunk.js:318137:14)
    at fulfilled (http://localhost:3000/static/js/1.chunk.js:318092:24)

  [1]: https://i.stack.imgur.com/4heUC.png

Can anyone help me to figure out this issue.

@Gingonic
Copy link

@rushesh Did you manage to find a workaround on this?

@kkrzyzek
Copy link

@rushesh @Gingonic facing same issues. Have you been able to solve it guys?

@kkrzyzek
Copy link

@Gingonic FYI: I've opened an issue for aws-sdk related to this problem: aws/aws-sdk-js-v3#1125
I believe the lib needs to be adjusted.

@rushesh
Copy link
Author

rushesh commented Apr 30, 2020

@Gingonic @kkrzyzek
No,
I had to change to build a bot using amplify interaction and that bot only working that too using react.js and not in angularjs.

@kkrzyzek
Copy link

kkrzyzek commented Apr 30, 2020

@rushesh got it. Thanks for response! Are you using Chatbot UI component provided by Amplify or created your own, custom one?
For me it all started working once I made locally a change, which I mentioned in aws/aws-sdk-js-v3#1125 in my project's node-modules/@AWS-SDK

@rushesh
Copy link
Author

rushesh commented Apr 30, 2020

@Gingonic I am using Chatbot UI component provided by Amplify.

@shresthapradip
Copy link

Still happening. Any workaround or update?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants