

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

# 进行故障排除 AppClients AppFabric 以提高工作效率
<a name="ahead-app-dev-errors"></a>


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

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

## 未验证的应用程序
<a name="unverified-application"></a>

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

![\[Warning message for an unverified application in AWS AppFabric, requesting data access.\]](http://docs.aws.amazon.com/zh_cn/appfabric/latest/adminguide/images/fabric-24.png)


## `CreateAppClient` 错误
<a name="dev-errors-CreateAppClient"></a>

### ServiceQuotaExceededException
<a name="service-quota-exceeded"></a>

如果您在创建时收到以下异常 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` 错误
<a name="dev-errors-GetAppClient"></a>

### ResourceNotFoundException
<a name="get-app-client-not-found"></a>

如果您在获取的详细信息时收到以下异常 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` 错误
<a name="dev-errors-DeleteAppClient"></a>

### ConflictException
<a name="another-delete-request"></a>

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

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

### ResourceNotFoundException
<a name="delete-app-client-not-found"></a>

如果您在删除时遇到以下异常 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` 错误
<a name="dev-errors-UpdateAppClient"></a>

### ResourceNotFoundException
<a name="update-app-client-not-found"></a>

如果您在更新时收到以下异常 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` 错误
<a name="dev-errors-Authorize"></a>

### ValidationException
<a name="authorize-validation-exception"></a>

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

```
ValidationException
HTTP Status Code: 400
```

**原因 1：未指定 AppClient ID 时**

请求参数中缺少 `app_client_id`。 AppClient如果尚未创建，请创建，或者使用现有的，`app_client_id`然后重试。要查找 AppClient ID，请使用 [ListAppClient](manage-appclients.md#list_appclients)API 操作。

**原因 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，请使用 [GetAppClient](manage-appclients.md#get_appclient_details)API 操作。

## `Token` 错误
<a name="dev-errors-Token"></a>

### TokenException
<a name="Token-token-exception"></a>

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

```
TokenException
HTTP Status Code: 400
```

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

```
Message: Invalid Email used
```

确保您使用的电子邮件地址与您创建时为该`starterUserEmails`属性列出的电子邮件地址相匹配 AppClient。如果电子邮件不匹配，请更改为匹配的电子邮件地址，然后重试。要查看使用的电子邮件，请使用 [GetAppClient](manage-appclients.md#get_appclient_details)API 操作。

**原因 2：对于 grant\$1type 为 refresh\$1token，当未指定令牌时。**

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

请求中指定的刷新令牌为 null 或空。在[令牌](getting-started-appdeveloper-productivity.md#authorize_data_access) API 调用响应中指定接收的有效 `refresh_token`。

### ThrottlingException
<a name="throttling-exception"></a>

如果调用 API 的速率超过允许的限额，则可能会收到下列异常。

```
ThrottlingException
HTTP Status Code: 429
```

## `ListActionableInsights`、`ListMeetingInsights` 和 `PutFeedback` 错误
<a name="dev-errors-many-apis"></a>

### ValidationException
<a name="many-apis-validation-exception"></a>

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

```
ValidationException
HTTP Status Code: 400
```

### ThrottlingException
<a name="many-apis-throttling-exception"></a>

如果调用 API 的速率超过允许的限额，则可能会收到下列异常。

```
ThrottlingException
HTTP Status Code: 429
```