无法确定要授权的服务/操作名称 - CreateParticipantConnection 上出现 AccessDeniedException 错误

发布于 2025-01-09 06:03:59 字数 988 浏览 1 评论 0原文

我正在尝试在 POSTMAN 中测试 Amazon Connect Chat API,

  1. 第一部分 StartChatContact 已测试/执行,并且我已通过 ContactId & 得到了 ParticipantToken 响应。 ParticipantId 通过使用 PUT: https://connect.us-east-1.amazonaws.com/contact/chat
  2. 但我无法运行 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,

  1. The first part StartChatContact tested/executed and i have got the ParticipantTokenback in response with ContactId & ParticipantId by using PUT: https://connect.us-east-1.amazonaws.com/contact/chat
  2. 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

扎心 2025-01-16 06:03:59

我遇到了同样的问题并找到了这篇文章,它有助于解决/修复问题。

无法确定服务/操作名称授权 - 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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文