

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

# 常見的 Amazon SNS 行動推送 API 錯誤
<a name="mobile-push-api-error"></a>

行動推送的 Amazon SNS API 所傳回的錯誤列於下表中。如需行動推送的 Amazon SNS API 的詳細資訊，請參閱 [行動推送 API 動作](mobile-push-api.md)。


| 錯誤 | 描述 | HTTPS 狀態碼 | API 動作 | 
| --- | --- | --- | --- | 
| 應用程式名稱為 null 字串 | 所需的應用程式名稱設定為 null。 | 400 | `CreatePlatformApplication` | 
| 平台名稱為 null 字串 | 所需的平台名稱設定為 null。 | 400 | `CreatePlatformApplication` | 
| 平台名稱無效 | 為平台名稱提供了無效或超出範圍的值。 | 400 | `CreatePlatformApplication` | 
| APN - 主體不是有效的憑證 | 提供給 APN 主體的憑證無效，其為 SSL 憑證。如需詳細資訊，請參閱 Amazon Simple Notification Service API 參考中的 [CreatePlatformApplication](https://docs.aws.amazon.com/sns/latest/api/API_CreatePlatformApplication.html)。 | 400 | `CreatePlatformApplication` | 
| APN - 主體是有效的憑證，但不是 .pem 格式 | 提供給 APN 主體的有效憑證不是 .pem 格式，其為 SSL 憑證。 | 400 | `CreatePlatformApplication` | 
| APN - 主體是過期的憑證 | 提供給 APN 主體的憑證過期，其為 SSL 憑證。 | 400 | `CreatePlatformApplication` | 
| APN - 主體不是 Apple 發行的憑證 | 提供給 APN 主體的憑證不是 Apple 發行，其為 SSL 憑證。 | 400 | `CreatePlatformApplication` | 
| APN - 主體未提供 | 未提供 APN 主體，其為 SSL 憑證。 | 400 | `CreatePlatformApplication` | 
| APN - 登入資料未提供 | 未提供 APN 登入資料，其為私密金鑰。如需詳細資訊，請參閱 Amazon Simple Notification Service API 參考中的 [CreatePlatformApplication](https://docs.aws.amazon.com/sns/latest/api/API_CreatePlatformApplication.html)。 | 400 | `CreatePlatformApplication` | 
| APN - 登入資料不是有效的 .pem 格式 | APN 登入資料不是有效的 .pem 格式，其為私密金鑰。 | 400 | `CreatePlatformApplication` | 
| FCM - 未提供 serverAPIKey | 未提供 FCM 憑證 (API 金鑰)。如需詳細資訊，請參閱 Amazon Simple Notification Service API 參考中的 [CreatePlatformApplication](https://docs.aws.amazon.com/sns/latest/api/API_CreatePlatformApplication.html)。 | 400 | `CreatePlatformApplication` | 
| FCM - serverAPIKey 為空白 | FCM 憑證 (API 金鑰) 為空白。 | 400 | `CreatePlatformApplication` | 
| FCM - serverAPIKey 為 null 字串 | FCM 憑證 (API 金鑰) 為 null。 | 400 | `CreatePlatformApplication` | 
| FCM - serverAPIKey 無效 | FCM 憑證 (API 金鑰) 無效。 | 400 | `CreatePlatformApplication` | 
| ADM - clientsecret 未提供 | 所需的用戶端密碼未提供。 | 400 | `CreatePlatformApplication` | 
| ADM - clientsecret 為 null 字串 | 用戶端密碼所需的字串為 null。 | 400 | `CreatePlatformApplication` | 
| ADM - client\$1secret 為空白字串 | 用戶端密碼所需的字串為空白。 | 400 | `CreatePlatformApplication` | 
| ADM - client\$1secret 無效 | 用戶端密碼所需的字串無效。 | 400 | `CreatePlatformApplication` | 
| ADM - client\$1id 為空白字串 | 用戶端 ID 所需的字串為空白。 | 400 | `CreatePlatformApplication` | 
| ADM - clientId 未提供 | 用戶端 ID 所需的字串未提供。 | 400 | `CreatePlatformApplication` | 
| ADM - clientid 為 null 字串 | 用戶端 ID 所需的字串為 null。 | 400 | `CreatePlatformApplication` | 
| ADM - client\$1id 無效 | 用戶端 ID 所需的字串無效。 | 400 | `CreatePlatformApplication` | 
| EventEndpointCreated 具有無效的 ARN 格式 | EventEndpointCreated 具有無效的 ARN 格式。 | 400 | `CreatePlatformApplication` | 
| EventEndpointDeleted 具有無效的 ARN 格式 | EventEndpointDeleted 具有無效的 ARN 格式。 | 400 | `CreatePlatformApplication` | 
| EventEndpointUpdated 具有無效的 ARN 格式 | EventEndpointUpdated 具有無效的 ARN 格式。 | 400 | `CreatePlatformApplication` | 
| EventDeliveryAttemptFailure 具有無效的 ARN 格式 | EventDeliveryAttemptFailure 具有無效的 ARN 格式。 | 400 | `CreatePlatformApplication` | 
| EventDeliveryFailure 具有無效的 ARN 格式 | EventDeliveryFailure 具有無效的 ARN 格式。 | 400 | `CreatePlatformApplication` | 
| EventEndpointCreated 不是現有的主題 | EventEndpointCreated 不是現有的主題。 | 400 | `CreatePlatformApplication` | 
| EventEndpointDeleted 不是現有的主題 | EventEndpointDeleted 不是現有的主題。 | 400 | `CreatePlatformApplication` | 
| EventEndpointUpdated 不是現有的主題 | EventEndpointUpdated 不是現有的主題。 | 400 | `CreatePlatformApplication` | 
| EventDeliveryAttemptFailure 不是現有的主題 | EventDeliveryAttemptFailure 不是現有的主題。 | 400 | `CreatePlatformApplication` | 
| EventDeliveryFailure 不是現有的主題 | EventDeliveryFailure 不是現有的主題。 | 400 | `CreatePlatformApplication` | 
| 平台 ARN 無效 | 平台 ARN 無效。 | 400 | `SetPlatformAttributes` | 
| 平台 ARN 有效但不屬於使用者 | 平台 ARN 有效但不屬於使用者。 | 400 | `SetPlatformAttributes` | 
| APN - 主體不是有效的憑證 | 提供給 APN 主體的憑證無效，其為 SSL 憑證。如需詳細資訊，請參閱 Amazon Simple Notification Service API 參考中的 [CreatePlatformApplication](https://docs.aws.amazon.com/sns/latest/api/API_CreatePlatformApplication.html)。 | 400 | `SetPlatformAttributes` | 
| APN - 主體是有效的憑證，但不是 .pem 格式 | 提供給 APN 主體的有效憑證不是 .pem 格式，其為 SSL 憑證。 | 400 | `SetPlatformAttributes` | 
| APN - 主體是過期的憑證 | 提供給 APN 主體的憑證過期，其為 SSL 憑證。 | 400 | `SetPlatformAttributes` | 
| APN - 主體不是 Apple 發行的憑證 | 提供給 APN 主體的憑證不是 Apple 發行，其為 SSL 憑證。 | 400 | `SetPlatformAttributes` | 
| APN - 主體未提供 | 未提供 APN 主體，其為 SSL 憑證。 | 400 | `SetPlatformAttributes` | 
| APN - 登入資料未提供 | 未提供 APN 登入資料，其為私密金鑰。如需詳細資訊，請參閱 Amazon Simple Notification Service API 參考中的 [CreatePlatformApplication](https://docs.aws.amazon.com/sns/latest/api/API_CreatePlatformApplication.html)。 | 400 | `SetPlatformAttributes` | 
| APN - 登入資料不是有效的 .pem 格式 | APN 登入資料不是有效的 .pem 格式，其為私密金鑰。 | 400 | `SetPlatformAttributes` | 
| FCM - 未提供 serverAPIKey | 未提供 FCM 憑證 (API 金鑰)。如需詳細資訊，請參閱 Amazon Simple Notification Service API 參考中的 [CreatePlatformApplication](https://docs.aws.amazon.com/sns/latest/api/API_CreatePlatformApplication.html)。 | 400 | `SetPlatformAttributes` | 
| FCM - serverAPIKey 為 null 字串 | FCM 憑證 (API 金鑰) 為 null。 | 400 | `SetPlatformAttributes` | 
| ADM - clientId 未提供 | 用戶端 ID 所需的字串未提供。 | 400 | `SetPlatformAttributes` | 
| ADM - clientid 為 null 字串 | 用戶端 ID 所需的字串為 null。 | 400 | `SetPlatformAttributes` | 
| ADM - clientsecret 未提供 | 所需的用戶端密碼未提供。 | 400 | `SetPlatformAttributes` | 
| ADM - clientsecret 為 null 字串 | 用戶端密碼所需的字串為 null。 | 400 | `SetPlatformAttributes` | 
| EventEndpointUpdated 具有無效的 ARN 格式 | EventEndpointUpdated 具有無效的 ARN 格式。 | 400 | `SetPlatformAttributes` | 
| EventEndpointDeleted 具有無效的 ARN 格式 | EventEndpointDeleted 具有無效的 ARN 格式。 | 400 | `SetPlatformAttributes` | 
| EventEndpointUpdated 具有無效的 ARN 格式 | EventEndpointUpdated 具有無效的 ARN 格式。 | 400 | `SetPlatformAttributes` | 
| EventDeliveryAttemptFailure 具有無效的 ARN 格式 | EventDeliveryAttemptFailure 具有無效的 ARN 格式。 | 400 | `SetPlatformAttributes` | 
| EventDeliveryFailure 具有無效的 ARN 格式 | EventDeliveryFailure 具有無效的 ARN 格式。 | 400 | `SetPlatformAttributes` | 
| EventEndpointCreated 不是現有的主題 | EventEndpointCreated 不是現有的主題。 | 400 | `SetPlatformAttributes` | 
| EventEndpointDeleted 不是現有的主題 | EventEndpointDeleted 不是現有的主題。 | 400 | `SetPlatformAttributes` | 
| EventEndpointUpdated 不是現有的主題 | EventEndpointUpdated 不是現有的主題。 | 400 | `SetPlatformAttributes` | 
| EventDeliveryAttemptFailure 不是現有的主題 | EventDeliveryAttemptFailure 不是現有的主題。 | 400 | `SetPlatformAttributes` | 
| EventDeliveryFailure 不是現有的主題 | EventDeliveryFailure 不是現有的主題。 | 400 | `SetPlatformAttributes` | 
| 平台 ARN 無效 | 平台 ARN 無效。 | 400 | `GetPlatformApplicationAttributes` | 
| 平台 ARN 有效但不屬於使用者 | 平台 ARN 有效但不屬於使用者。 | 403 | `GetPlatformApplicationAttributes` | 
| 指定的字符無效 | 指定的字符無效。 | 400 | `ListPlatformApplications` | 
| 平台 ARN 無效 | 平台 ARN 無效。 | 400 | `ListEndpointsByPlatformApplication` | 
| 平台 ARN 有效但不屬於使用者 | 平台 ARN 有效但不屬於使用者。 | 404 | `ListEndpointsByPlatformApplication` | 
| 指定的字符無效 | 指定的字符無效。 | 400 | `ListEndpointsByPlatformApplication` | 
| 平台 ARN 無效 | 平台 ARN 無效。 | 400 | `DeletePlatformApplication` | 
| 平台 ARN 有效但不屬於使用者 | 平台 ARN 有效但不屬於使用者。 | 403 | `DeletePlatformApplication` | 
| 平台 ARN 無效 | 平台 ARN 無效。 | 400 | `CreatePlatformEndpoint` | 
| 平台 ARN 有效但不屬於使用者 | 平台 ARN 有效但不屬於使用者。 | 404 | `CreatePlatformEndpoint` | 
| 未指定字符 | 未指定字符。 | 400 | `CreatePlatformEndpoint` | 
| 字符不是正確的長度 | 字符不是正確的長度。 | 400 | `CreatePlatformEndpoint` | 
| 客戶使用者資料過大 | 客戶使用者資料使用 UTF-8 編碼時長度不可超過 2048 位元組。 | 400 | `CreatePlatformEndpoint` | 
| 端點 ARN 無效 | 端點 ARN 無效。 | 400 | `DeleteEndpoint` | 
| 端點 ARN 有效但不屬於使用者 | 端點 ARN 有效但不屬於使用者。 | 403 | `DeleteEndpoint` | 
| 端點 ARN 無效 | 端點 ARN 無效。 | 400 | `SetEndpointAttributes` | 
| 端點 ARN 有效但不屬於使用者 | 端點 ARN 有效但不屬於使用者。 | 403 | `SetEndpointAttributes` | 
| 未指定字符 | 未指定字符。 | 400 | `SetEndpointAttributes` | 
| 字符不是正確的長度 | 字符不是正確的長度。 | 400 | `SetEndpointAttributes` | 
| 客戶使用者資料過大 | 客戶使用者資料使用 UTF-8 編碼時長度不可超過 2048 位元組。 | 400 | `SetEndpointAttributes` | 
| 端點 ARN 無效 | 端點 ARN 無效。 | 400 | `GetEndpointAttributes` | 
| 端點 ARN 有效但不屬於使用者 | 端點 ARN 有效但不屬於使用者。 | 403 | `GetEndpointAttributes` | 
| 目標 ARN 無效 | 目標 ARN 無效。 | 400 | `Publish` | 
| 目標 ARN 有效但不屬於使用者 | 目標 ARN 有效但不屬於使用者。 | 403 | `Publish` | 
| 訊息格式無效 | 訊息格式無效。 | 400 | `Publish` | 
| 訊息大小大於協定/終端服務所支援的大小 | 訊息大小大於協定/終端服務所支援的大小。 | 400 | `Publish` | 