How to set security token for AWS Transcribe plugin

68 views
Skip to first unread message

Payne Ye

unread,
Sep 14, 2023, 10:27:08 PM9/14/23
to UniMRCP
I set up an env follow https://docs.unispeech.io/en/ums/aws
When I try a test call. Got failure, here is the err :

connection: upgrade^M                                                                                                                                                                                                                                                      
sec-websocket-accept: La+LXZsWwaE7dRg8XSCArVEl0SY=^M
x-amzn-RequestId: ac4294e0-d051-4616-9da3-3b0c6bfdb25f^M
Strict-Transport-Security: max-age=31536000^M
x-amzn-SessionId: f2611705-3a9d-4126-b738-4b32d7e00961^M
^M

2023-09-14 10:46:57:531892 [INFO]   Send WS bin msg [3304 bytes] <c703b0467f824955>
2023-09-14 10:46:57:531996 [INFO]   Send WS bin msg [3304 bytes] <c703b0467f824955>
2023-09-14 10:46:57:532099 [INFO]   Send WS bin msg [3304 bytes] <c703b0467f824955>
2023-09-14 10:46:57:532178 [INFO]   Send WS bin msg [3304 bytes] <c703b0467f824955>
2023-09-14 10:46:57:541601 [INFO]   Send WS bin msg [3304 bytes] <c703b0467f824955>
2023-09-14 10:46:57:543154 [INFO]   Received WS bin msg [189 bytes] <c703b0467f824955>
2023-09-14 10:46:57:543221 [INFO]   Received WS close [43 bytes] status code [1000] reason [Your request completed with an exception.] <c703b0467f824955>
2023-09-14 10:46:57:543229 [INFO]   Close WS connection <c703b0467f824955>
2023-09-14 10:46:57:543232 [WARN]   Error [UnrecognizedClientException] <c703b0467f824955@transcribe>
{"Message":"The security token included in the request is invalid."}
2023-09-14 10:46:57:543274 [INFO]   Process Connection Hangup <c703b0467f824955@transcribe>
2023-09-14 10:46:57:543482 [INFO]   Clean up <c703b0467f824955>
2023-09-14 10:46:57:543508 [INFO]   Initiate WS connection <c703b0467f824955> [https://transcribestreaming.us-east-1.amazonaws.com:8443/stream-transcription-websocket]
2023-09-14 10:46:58:140148 [INFO]   WS connected <c703b0467f824955>
2023-09-14 10:46:58:140185 [INFO]   WS upgrade <c703b0467f824955>
2023-09-14 10:46:58:337623 [INFO]   WS upgraded <c703b0467f824955>
HTTP/1.1 101 Switching Protocols^M
upgrade: websocket^M
connection: upgrade^M
sec-websocket-accept: M7vMkQBIa2gcEEr0rnvJmN0om0c=^M
x-amzn-RequestId: 4d99adf4-5b01-49d9-ab29-381dcbd9e78a^M
Strict-Transport-Security: max-age=31536000^M
x-amzn-SessionId: bb05f74e-fe38-47b1-b147-1c87770ad680^M
^M

2023-09-14 10:46:58:337811 [INFO]   Send WS bin msg [3304 bytes] <c703b0467f824955>
2023-09-14 10:46:58:337925 [INFO]   Send WS bin msg [3304 bytes] <c703b0467f824955>
2023-09-14 10:46:58:338020 [INFO]   Send WS bin msg [3304 bytes] <c703b0467f824955>
2023-09-14 10:46:58:341616 [INFO]   Send WS bin msg [3304 bytes] <c703b0467f824955>
2023-09-14 10:46:58:351297 [INFO]   Received WS bin msg [189 bytes] <c703b0467f824955>
2023-09-14 10:46:58:351346 [INFO]   Received WS close [43 bytes] status code [1000] reason [Your request completed with an exception.] <c703b0467f824955>
2023-09-14 10:46:58:351352 [INFO]   Close WS connection <c703b0467f824955>
2023-09-14 10:46:58:351397 [WARN]   Error [UnrecognizedClientException] <c703b0467f824955@transcribe>
{"Message":"The security token included in the request is invalid."}
2023-09-14 10:46:58:351445 [INFO]   Process Connection Hangup 

How can I config the security token fot it?

Vahagn Kocharyan

unread,
Oct 18, 2023, 1:36:20 PM10/18/23
to UniMRCP
Hi
Please setup properly aws credentials. you can see in  5.2 Installation of Credentials . If issue persist please upgrade your plugin version
Thanks

Reply all
Reply to author
Forward
0 new messages