无法确定要授权的服务/操作名称 - CreateParticipantConnection 上出现 AccessDeniedException 错误
我正在尝试在 POSTMAN 中测试 Amazon Connect Chat API,
- 第一部分
StartChatContact
已测试/执行,并且我已通过ContactId & 得到了
通过使用ParticipantToken
响应。 ParticipantIdPUT: https://connect.us-east-1.amazonaws.com/contact/chat
- 但我无法运行
POST: https:// /connect.us-east-1.amazonaws.com/participant/connection
。这是 AWS 给出的请求语法:
POST /participant/connection HTTP/1.1
X-Amz-Bearer: ParticipantToken
Content-type: application/json
{
"ConnectParticipant": boolean,
"Type": [ "string" ]
}
我已尝试使用 ParticipantToken
作为标头参数,其名称在文档 (X- Amz-Bearer: ParticipantToken)
以及在授权
中用作类型API Key & AWS 签名
。 但无法摆脱这个错误。在响应标头中,我得到了 x-amzn-ErrorType: AccessDeniedException
并在正文中
{
"message": "Unable to determine service/operation name to be authorized"
}
如何删除此错误?请任何解决方案。
I am trying to test the Amazon Connect Chat API in POSTMAN,
- The first part
StartChatContact
tested/executed and i have got theParticipantToken
back in response withContactId & ParticipantId
by usingPUT: https://connect.us-east-1.amazonaws.com/contact/chat
- But i am unable to run the
POST: https://connect.us-east-1.amazonaws.com/participant/connection
. here is the Request Syntax AWS has given:
POST /participant/connection HTTP/1.1
X-Amz-Bearer: ParticipantToken
Content-type: application/json
{
"ConnectParticipant": boolean,
"Type": [ "string" ]
}
i have tried the ParticipantToken
as header parameter with name mentioned in documentation (X-Amz-Bearer: ParticipantToken)
as well as used in Authorization
as Type API Key & AWS Signature
.
But can't get rid of this error. In response Headers i got x-amzn-ErrorType: AccessDeniedException
and in body
{
"message": "Unable to determine service/operation name to be authorized"
}
How to remove this error? any solution please.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我遇到了同样的问题并找到了这篇文章,它有助于解决/修复问题。
无法确定服务/操作名称授权 - CreateParticipantConnection 上出现 AccessDeniedException 错误
我正在使用 Postman,并且没有将 URL 设置为在 https 后面包含“participant”,如下所示: Amazon Connect 参与者服务 API :
https://participant.connect.{your-region}.amazonaws.com/participant/connection
请注意,Amazon Connect API 的子域与 Amazon Connect API 的子域不同Amazon Connect 参与者服务 API。
请参阅本页上的表格:
https://docs.aws.amazon.com/general/latest/ gr/connect_region.html
I had the same issue and found this article, which help resolve/fix the problem.
Getting Unable to determine service/operation name to be authorized - AccessDeniedException Error on CreateParticipantConnection
I was using Postman and had not set the URL to include "participant" after the https as per below for any of the Amazon Connect Participant Service APIs :
https://participant.connect.{your-region}.amazonaws.com/participant/connection
Note that the sub-domain is different for the Amazon Connect API vs the Amazon Connect Participant Service APIs.
See the tables on this page:
https://docs.aws.amazon.com/general/latest/gr/connect_region.html