

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

# Amazon SNS 移动推送 API 常见错误
<a name="mobile-push-api-error"></a>

下表列出了移动推送 Amazon SNS API 返回的错误。有关移动推送 Amazon SNS API 的更多信息，请参阅 [移动推送 API 操作](mobile-push-api.md)。


| 错误 | 描述 | HTTPS 状态代码 | API 操作 | 
| --- | --- | --- | --- | 
| Application Name is null string | 必需的应用程序名称设置为 Null。 | 400 | `CreatePlatformApplication` | 
| Platform Name is null string | 必需的平台名称设置为 Null。 | 400 | `CreatePlatformApplication` | 
| Platform Name is invalid | 为平台名称提供的值无效或超出范围。 | 400 | `CreatePlatformApplication` | 
| APNs — Principal is not a valid certificate | 为 APNs 主体（即 SSL 证书）提供了无效证书。有关更多信息，请参阅《Amazon Simple Notification Service API Reference》中的 [CreatePlatformApplication](https://docs.aws.amazon.com/sns/latest/api/API_CreatePlatformApplication.html)。 | 400 | `CreatePlatformApplication` | 
| APNs — Principal is a valid cert but not in a .pem format | 为 APNs 主体（即 SSL 证书）提供了非 .pem 格式的有效证书。 | 400 | `CreatePlatformApplication` | 
| APNs — Principal is an expired certificate | 为 APNs 主体（即 SSL 证书）提供了过期证书。 | 400 | `CreatePlatformApplication` | 
| APNs — Principal is not an Apple issued certificate | 为 APNs 主体（即 SSL 证书）提供了非 Apple 颁发的证书。 | 400 | `CreatePlatformApplication` | 
| APNs — Principal is not provided | 未提供 APNs 主体（即 SSL 证书）。 | 400 | `CreatePlatformApplication` | 
| APNs — Credential is not provided | 未提供 APNs 凭证（即私有密钥）。有关更多信息，请参阅《Amazon Simple Notification Service API Reference》中的 [CreatePlatformApplication](https://docs.aws.amazon.com/sns/latest/api/API_CreatePlatformApplication.html)。 | 400 | `CreatePlatformApplication` | 
| APNs — Credential are not in a valid .pem format | APNs 凭证（即私有密钥）不是有效的 .pem 格式。 | 400 | `CreatePlatformApplication` | 
| FCM — serverAPIKey is not provided | 未提供 FCM 凭证（即 API 密钥）。有关更多信息，请参阅《Amazon Simple Notification Service API Reference》中的 [CreatePlatformApplication](https://docs.aws.amazon.com/sns/latest/api/API_CreatePlatformApplication.html)。 | 400 | `CreatePlatformApplication` | 
| FCM — serverAPIKey is empty | FCM 凭证（即 API 密钥）为空。 | 400 | `CreatePlatformApplication` | 
| FCM — serverAPIKey is a null string | FCM 凭证（即 API 密钥）为 Null。 | 400 | `CreatePlatformApplication` | 
| FCM — serverAPIKey is invalid | FCM 凭证（即 API 密钥）无效。 | 400 | `CreatePlatformApplication` | 
| ADM — clientsecret is not provided | 未提供必需的客户端密钥。 | 400 | `CreatePlatformApplication` | 
| ADM — clientsecret is a null string | 客户端密钥所需的字符串为 Null。 | 400 | `CreatePlatformApplication` | 
| ADM — client\$1secret is empty string | 客户端密钥所需的字符串为空。 | 400 | `CreatePlatformApplication` | 
| ADM — client\$1secret is not valid | 客户端密钥所需的字符串无效。 | 400 | `CreatePlatformApplication` | 
| ADM — client\$1id is empty string | 客户端 ID 所需的字符串为空。 | 400 | `CreatePlatformApplication` | 
| ADM — clientId is not provided | 未提供客户端 ID 所需的字符串。 | 400 | `CreatePlatformApplication` | 
| ADM — clientid is a null string | 客户端 ID 所需的字符串为 Null。 | 400 | `CreatePlatformApplication` | 
| ADM — client\$1id is not valid | 客户端 ID 所需的字符串无效。 | 400 | `CreatePlatformApplication` | 
| EventEndpointCreated has invalid ARN format | EventEndpointCreated 具有无效 ARN 格式。 | 400 | `CreatePlatformApplication` | 
| EventEndpointDeleted has invalid ARN format | EventEndpointDeleted 具有无效 ARN 格式。 | 400 | `CreatePlatformApplication` | 
| EventEndpointUpdated has invalid ARN format | EventEndpointUpdated 具有无效 ARN 格式。 | 400 | `CreatePlatformApplication` | 
| EventDeliveryAttemptFailure has invalid ARN format | EventDeliveryAttemptFailure 具有无效 ARN 格式。 | 400 | `CreatePlatformApplication` | 
| EventDeliveryFailure has invalid ARN format | EventDeliveryFailure 具有无效 ARN 格式。 | 400 | `CreatePlatformApplication` | 
| EventEndpointCreated is not an existing Topic | EventEndpointCreated 不是现有主题。 | 400 | `CreatePlatformApplication` | 
| EventEndpointDeleted is not an existing Topic | EventEndpointDeleted 不是现有主题。 | 400 | `CreatePlatformApplication` | 
| EventEndpointUpdated is not an existing Topic | EventEndpointUpdated 不是现有主题。 | 400 | `CreatePlatformApplication` | 
| EventDeliveryAttemptFailure is not an existing Topic | EventDeliveryAttemptFailure 不是现有主题。 | 400 | `CreatePlatformApplication` | 
| EventDeliveryFailure is not an existing Topic | EventDeliveryFailure 不是现有主题。 | 400 | `CreatePlatformApplication` | 
| Platform ARN is invalid | 平台 ARN 无效。 | 400 | `SetPlatformAttributes` | 
| Platform ARN is valid but does not belong to the user | 平台 ARN 有效，但不属于该用户。 | 400 | `SetPlatformAttributes` | 
| APNs — Principal is not a valid certificate | 为 APNs 主体（即 SSL 证书）提供了无效证书。有关更多信息，请参阅《Amazon Simple Notification Service API Reference》中的 [CreatePlatformApplication](https://docs.aws.amazon.com/sns/latest/api/API_CreatePlatformApplication.html)。 | 400 | `SetPlatformAttributes` | 
| APNs — Principal is a valid cert but not in a .pem format | 为 APNs 主体（即 SSL 证书）提供了非 .pem 格式的有效证书。 | 400 | `SetPlatformAttributes` | 
| APNs — Principal is an expired certificate | 为 APNs 主体（即 SSL 证书）提供了过期证书。 | 400 | `SetPlatformAttributes` | 
| APNs — Principal is not an Apple issued certificate | 为 APNs 主体（即 SSL 证书）提供了非 Apple 颁发的证书。 | 400 | `SetPlatformAttributes` | 
| APNs — Principal is not provided | 未提供 APNs 主体（即 SSL 证书）。 | 400 | `SetPlatformAttributes` | 
| APNs — Credential is not provided | 未提供 APNs 凭证（即私有密钥）。有关更多信息，请参阅《Amazon Simple Notification Service API Reference》中的 [CreatePlatformApplication](https://docs.aws.amazon.com/sns/latest/api/API_CreatePlatformApplication.html)。 | 400 | `SetPlatformAttributes` | 
| APNs — Credential are not in a valid .pem format | APNs 凭证（即私有密钥）不是有效的 .pem 格式。 | 400 | `SetPlatformAttributes` | 
| FCM — serverAPIKey is not provided | 未提供 FCM 凭证（即 API 密钥）。有关更多信息，请参阅《Amazon Simple Notification Service API Reference》中的 [CreatePlatformApplication](https://docs.aws.amazon.com/sns/latest/api/API_CreatePlatformApplication.html)。 | 400 | `SetPlatformAttributes` | 
| FCM — serverAPIKey is a null string | FCM 凭证（即 API 密钥）为 Null。 | 400 | `SetPlatformAttributes` | 
| ADM — clientId is not provided | 未提供客户端 ID 所需的字符串。 | 400 | `SetPlatformAttributes` | 
| ADM — clientid is a null string | 客户端 ID 所需的字符串为 Null。 | 400 | `SetPlatformAttributes` | 
| ADM — clientsecret is not provided | 未提供必需的客户端密钥。 | 400 | `SetPlatformAttributes` | 
| ADM — clientsecret is a null string | 客户端密钥所需的字符串为 Null。 | 400 | `SetPlatformAttributes` | 
| EventEndpointUpdated has invalid ARN format | EventEndpointUpdated 具有无效 ARN 格式。 | 400 | `SetPlatformAttributes` | 
| EventEndpointDeleted has invalid ARN format | EventEndpointDeleted 具有无效 ARN 格式。 | 400 | `SetPlatformAttributes` | 
| EventEndpointUpdated has invalid ARN format | EventEndpointUpdated 具有无效 ARN 格式。 | 400 | `SetPlatformAttributes` | 
| EventDeliveryAttemptFailure has invalid ARN format | EventDeliveryAttemptFailure 具有无效 ARN 格式。 | 400 | `SetPlatformAttributes` | 
| EventDeliveryFailure has invalid ARN format | EventDeliveryFailure 具有无效 ARN 格式。 | 400 | `SetPlatformAttributes` | 
| EventEndpointCreated is not an existing Topic | EventEndpointCreated 不是现有主题。 | 400 | `SetPlatformAttributes` | 
| EventEndpointDeleted is not an existing Topic | EventEndpointDeleted 不是现有主题。 | 400 | `SetPlatformAttributes` | 
| EventEndpointUpdated is not an existing Topic | EventEndpointUpdated 不是现有主题。 | 400 | `SetPlatformAttributes` | 
| EventDeliveryAttemptFailure is not an existing Topic | EventDeliveryAttemptFailure 不是现有主题。 | 400 | `SetPlatformAttributes` | 
| EventDeliveryFailure is not an existing Topic | EventDeliveryFailure 不是现有主题。 | 400 | `SetPlatformAttributes` | 
| Platform ARN is invalid | 平台 ARN 无效。 | 400 | `GetPlatformApplicationAttributes` | 
| Platform ARN is valid but does not belong to the user | 平台 ARN 有效，但不属于该用户。 | 403 | `GetPlatformApplicationAttributes` | 
| Token specified is invalid | 指定的令牌无效。 | 400 | `ListPlatformApplications` | 
| Platform ARN is invalid | 平台 ARN 无效。 | 400 | `ListEndpointsByPlatformApplication` | 
| Platform ARN is valid but does not belong to the user | 平台 ARN 有效，但不属于该用户。 | 404 | `ListEndpointsByPlatformApplication` | 
| Token specified is invalid | 指定的令牌无效。 | 400 | `ListEndpointsByPlatformApplication` | 
| Platform ARN is invalid | 平台 ARN 无效。 | 400 | `DeletePlatformApplication` | 
| Platform ARN is valid but does not belong to the user | 平台 ARN 有效，但不属于该用户。 | 403 | `DeletePlatformApplication` | 
| Platform ARN is invalid | 平台 ARN 无效。 | 400 | `CreatePlatformEndpoint` | 
| Platform ARN is valid but does not belong to the user | 平台 ARN 有效，但不属于该用户。 | 404 | `CreatePlatformEndpoint` | 
| Token is not specified | 未指定令牌。 | 400 | `CreatePlatformEndpoint` | 
| Token is not of correct length | 令牌长度不正确。 | 400 | `CreatePlatformEndpoint` | 
| Customer User data is too large | 客户用户数据的长度不能超过 2048 个字节（UTF-8 编码）。 | 400 | `CreatePlatformEndpoint` | 
| Endpoint ARN is invalid | 端点 ARN 无效。 | 400 | `DeleteEndpoint` | 
| Endpoint ARN is valid but does not belong to the user | 端点 ARN 有效，但不属于该用户。 | 403 | `DeleteEndpoint` | 
| Endpoint ARN is invalid | 端点 ARN 无效。 | 400 | `SetEndpointAttributes` | 
| Endpoint ARN is valid but does not belong to the user | 端点 ARN 有效，但不属于该用户。 | 403 | `SetEndpointAttributes` | 
| Token is not specified | 未指定令牌。 | 400 | `SetEndpointAttributes` | 
| Token is not of correct length | 令牌长度不正确。 | 400 | `SetEndpointAttributes` | 
| Customer User data is too large | 客户用户数据的长度不能超过 2048 个字节（UTF-8 编码）。 | 400 | `SetEndpointAttributes` | 
| Endpoint ARN is invalid | 端点 ARN 无效。 | 400 | `GetEndpointAttributes` | 
| Endpoint ARN is valid but does not belong to the user | 端点 ARN 有效，但不属于该用户。 | 403 | `GetEndpointAttributes` | 
| Target ARN is invalid | 目标 ARN 无效。 | 400 | `Publish` | 
| Target ARN is valid but does not belong to the user | 目标 ARN 有效，但不属于该用户。 | 403 | `Publish` | 
| Message format is invalid | 消息格式无效。 | 400 | `Publish` | 
| Message size is larger than supported by protocol/end-service | 消息大小超过协议/端点服务支持的范围。 | 400 | `Publish` | 