故障排除 - AWS AppFabric

本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。

故障排除

提高 AWS AppFabric 工作效率功能处于预览阶段,可能会发生变化。

本节介绍常见错误和故障排除, AppFabric 以提高工作效率。

未验证的应用程序

AppFabric 用于提高工作效率来丰富其应用程序体验的应用程序开发者在向最终用户推出其功能之前将经过验证流程。所有应用程序都以未验证状态启动,只有在验证过程完成后才会更改为已验证。这意味着starterUserEmails您在创建时使用的 AppClient 将看到此消息。

Warning message for an unverified application in AWS AppFabric, requesting data access.

CreateAppClient 错误

ServiceQuotaExceededException

如果您在创建时收到以下异常 AppClient,则说明您已经超过了每个 AppClients 可以创建的数量 AWS 账户。限制为 1。HTTP状态码:402

ServiceQuotaExceededException / SERVICE_QUOTA_EXCEEDED You have exceeded the number of AppClients that can be created per AWS Account. The limit is 1. HTTP Status Code: 402

GetAppClient 错误

ResourceNotFoundException

如果您在获取的详细信息时收到以下异常 AppClient,请确保您输入了正确的 AppClient 标识符。此错误表示未找到指定 AppClient 的。

ResourceNotFoundException / APP_CLIENT_NOT_FOUND The specified AppClient is not found. Ensure you’ve entered the correct AppClient identifier. HTTP Status Code: 404

DeleteAppClient 错误

ConflictException

如果您在删除时收到以下异常 AppClient,则表示另一个删除请求正在处理中。等待完成,然后重试。HTTP状态码:409

ConflictException Another delete request is in progress. Wait until it completes then try again. HTTP Status Code: 409

ResourceNotFoundException

如果您在删除时遇到以下异常 AppClient,请确保您输入了正确的标 AppClient 识符。此错误表示未找到指定 AppClient 的。

ResourceNotFoundException / APP_CLIENT_NOT_FOUND The specified AppClient is not found. Ensure you’ve entered the correct AppClient identifier. HTTP Status Code: 404

UpdateAppClient 错误

ResourceNotFoundException

如果您在更新时收到以下异常 AppClient,请确保您输入了正确的标 AppClient 识符。此错误表示未找到指定 AppClient 的。

ResourceNotFoundException / APP_CLIENT_NOT_FOUND The specified AppClient is not found. Ensure you’ve entered the correct AppClient identifier. HTTP Status Code: 404

Authorize 错误

ValidationException

如果任何API参数不满足API规范中定义的约束,则可能会收到以下异常。

ValidationException HTTP Status Code: 400

原因 1:未指定 AppClient ID 时

请求参数中缺少 app_client_id。 AppClient如果尚未创建,请创建,或者使用现有的,app_client_id然后重试。要查找 AppClient ID,请使用ListAppClientAPI操作。

原因 2:何时 AppFabric 无法访问客户管理的密钥

Message: AppFabric couldn't access the customer managed key configured for AppClient.

AppFabric 目前无法访问客户托管的密钥,这可能是由于其权限最近发生了变化。验证指定的密钥 AppFabric 是否存在,并确保已授予相应的访问权限。

原因 3:URL指定的重定向无效

Message: Redirect url invalid

确保请求URL中的重定向是正确的。它必须与您在创建或更新时URLs指定的重定向相匹配 AppClient。要查看允许的重定向列表URLs,请使用GetAppClientAPI操作。

Token 错误

TokenException

您可能会收到以下异常,原因如下。

TokenException HTTP Status Code: 400

原因 1:指定了无效的电子邮件时

Message: Invalid Email used

确保您使用的电子邮件地址与您创建时为该starterUserEmails属性列出的电子邮件地址相匹配 AppClient。如果电子邮件不匹配,请更改为匹配的电子邮件地址,然后重试。要查看使用的电子邮件,请使用GetAppClientAPI操作。

原因 2:对于 grant_type 为 refresh_token,当未指定令牌时。

Message: refresh_token must be non-null for Refresh Token Grant-type

请求中指定的刷新令牌为 null 或空。在 Toke n API 调用响应中指定refresh_token已激活接收。

ThrottlingException

如果调用的速率超过允许的API配额,则可能会收到以下异常。

ThrottlingException HTTP Status Code: 429

ListActionableInsightsListMeetingInsightsPutFeedback 错误

ValidationException

如果任何API参数不满足API规范中定义的约束,则可能会收到以下异常。

ValidationException HTTP Status Code: 400

ThrottlingException

如果调用的速率超过允许的API配额,则可能会收到以下异常。

ThrottlingException HTTP Status Code: 429