

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# 故障診斷 AppFabric 中的 AppClients 以提高生產力 AppFabric
<a name="ahead-app-dev-errors"></a>


|  | 
| --- |
| 生產力的 The 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_tw/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，請建立 AppClient，或使用您現有的 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 正確。它必須符合您在建立或更新 AppClient 時指定的其中一個重新導向 URLs。若要檢視允許的重新導向 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
```

確保您使用的電子郵件地址與您建立 AppClient 時為 `starterUserEmails` 屬性列出的電子郵件地址相符。如果電子郵件不相符，請變更為相符的電子郵件地址，然後再試一次。若要檢視使用的電子郵件，請使用 [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
```