我想对我在集成式开发环境 (IDE) 中使用 Amazon Q 开发者版时收到的身份验证错误进行故障排除。
解决方法
当您在 IDE 中使用 Amazon Q 开发者版时,可能会收到以下错误消息之一:
- "AccessDeniedException: Access denied"
- "An error occurred while processing your request.This error is reported to the team automatically.We will attempt to fix it as soon as possible.Details: Your account is not authorized to make this call"
- "Application sign in error - An error occurred while signing in to the application [Invalid callback URL]"
根据您收到的错误消息对问题进行故障排除。
在开始之前,请安装最新的 Amazon Q 扩展和支持的 IDE 版本。
AccessDeniedException: 访问遭拒错误
当您未订阅 Amazon Q 开发者版专业套餐时,您会收到 Access Denied(访问遭拒)错误。要检查您是否已订阅,请完成以下步骤:
- 使用 AWS 访问门户 URL 登录您的账户。
- 选择 Applications(应用程序)。
- 查找 QDefaultProfile 应用程序。
如果您看到 QDefaultProfile 应用程序,则表示您已订阅 Amazon Q 开发者版专业套餐。如果您看不到该应用程序,请联系您的管理员进行订阅。
或者,如果您有权访问 Amazon Q 订阅控制台,请完成以下步骤来检查您的订阅状态:
- 打开 Amazon Q 控制台。
- 选择 Subscriptions(订阅)。
- 在 Subscribed groups and users(已订阅的组和用户)下,选择 Users(用户)。
- 检查您的用户名是否列出。
如果未列出,则表示您未订阅。如果已列出,请检查您的订阅是否处于 Active(活动)状态。如果您的状态为 Pending(待处理),则表示您已订阅但尚未开始计费。首次使用 Amazon Q 开发者版专业套餐后,您将开始付费。
要进行订阅,请参阅为用户订阅 Amazon Q 开发者版专业套餐。
**注意:**搜索用户时,请使用该用户的显示名称。
如果您的订阅状态为 Canceled(已取消),请重新订阅。
要重新订阅,请完成以下步骤:
- 打开 Amazon Q 控制台。
- 选择 Subscriptions(订阅)。
- 在 Subscribed groups and users(已订阅的组和用户)下,选择 Users(用户)。
- 选择您的用户名。
- 选择 More Actions(更多操作),然后选择 Resubscribe(重新订阅)。
"An error occurred while processing your request.This error is reported to the team automatically.We will attempt to fix it as soon as possible.Details: Your account is not authorized to make this call"
如果您在尝试使用 Amazon Q 开发者版专业套餐进行聊天时收到上述错误消息,则表示您的订阅可能未激活。将您的用户名添加到组后,您的订阅最多可能需要 24 小时才能激活。
如果您在 24 小时后仍收到 Account is not authorized to make this call 错误,请检查您是否已订阅。
"Application sign in error - An error occurred while signing in to the application [Invalid callback URL]"
您必须在与 AWS IAM Identity Center 实例所在区域相同的 AWS 区域中登录应用程序。
相关信息
Amazon Q 开发者版专业套餐订阅故障排除