移动推送 API 错误 - Amazon Simple Notification Service
Amazon Web Services 文档中描述的 Amazon Web Services 服务或功能可能因区域而异。要查看适用于中国区域的差异,请参阅 中国的 Amazon Web Services 服务入门 (PDF)

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

移动推送 API 错误

下表列出了移动推送 Amazon SNS API 返回的错误。有关移动推送 Amazon SNS API 的更多信息,请参阅 移动推送 API 操作

错误 描述 HTTPS 状态代码 API 操作

应用程序名称为空字符串

必需的应用程序名称设置为空。

400

CreatePlatformApplication

平台名称为空字符串

必需的平台名称设置为空。

400

CreatePlatformApplication

平台名称无效

为平台名称提供的值无效或超出范围。

400

CreatePlatformApplication

APNs - 委托人不属于有效证书

为 APNs 委托人(即 SSL 证书)提供了无效证书。有关更多信息,请参阅 Amazon Simple Notification Service API 参考中的 CreatePlatformApplication

400

CreatePlatformApplication

APNs - 委托人是有效的证书,但未采用 .pem 格式

为 APNs 委托人(即 SSL 证书)提供了非 .pem 格式的有效证书。

400

CreatePlatformApplication

APNs — 委托人是过期的证书

为 APNs 委托人(即 SSL 证书)提供了过期证书。

400

CreatePlatformApplication

APNs - 委托人不是 Apple 颁发的证书

为 APNs 委托人(即 SSL 证书)提供了非 Apple 颁发的证书。

400

CreatePlatformApplication

APNs - 未提供委托人

未提供 APNs 委托人(即 SSL 证书)。

400

CreatePlatformApplication

APNs - 未提供凭证

未提供 APNs 凭证(即私有密钥)。有关更多信息,请参阅 Amazon Simple Notification Service API 参考中的 CreatePlatformApplication

400

CreatePlatformApplication

APNs - 凭证不是有效的 .pem 格式

APNs 凭证(即私有密钥)不是有效的 .pem 格式。

400

CreatePlatformApplication

FCM - 未提供 serverAPIKey

未提供 FCM 证书(即 API 密钥)。有关更多信息,请参阅 Amazon Simple Notification Service API 参考中的 CreatePlatformApplication

400

CreatePlatformApplication

FCM - serverAPIKey 为空

FCM 证书(即 API 密钥)为空。

400

CreatePlatformApplication

FCM - serverAPIKey 为空字符串

FCM 证书(即 API 密钥)为 null。

400

CreatePlatformApplication

FCM - serverAPIKey 无效

FCM 证书(即 API 密钥)无效。

400

CreatePlatformApplication

ADM - 未提供 clientsecret

未提供必需的客户端密钥。

400

CreatePlatformApplication

ADM - clientsecret 为空字符串

客户端密钥所需的字符串为空。

400

CreatePlatformApplication

ADM - client_secret 为空字符串

客户端密钥所需的字符串为空。

400

CreatePlatformApplication

ADM - client_secret 无效

客户端密钥所需的字符串无效。

400

CreatePlatformApplication

ADM - client_id 为空字符串

客户端 ID 所需的字符串为空。

400

CreatePlatformApplication

ADM - 未提供 clientId

未提供客户端 ID 所需的字符串。

400

CreatePlatformApplication

ADM - clientid 为空字符串

客户端 ID 所需的字符串为空。

400

CreatePlatformApplication

ADM - client_id 无效

客户端 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

APNs - 委托人不属于有效证书

为 APNs 委托人(即 SSL 证书)提供了无效证书。有关更多信息,请参阅 Amazon Simple Notification Service API 参考中的 CreatePlatformApplication

400

SetPlatformAttributes

APNs - 委托人是有效的证书,但未采用 .pem 格式

为 APNs 委托人(即 SSL 证书)提供了非 .pem 格式的有效证书。

400

SetPlatformAttributes

APNs — 委托人是过期的证书

为 APNs 委托人(即 SSL 证书)提供了过期证书。

400

SetPlatformAttributes

APNs - 委托人不是 Apple 颁发的证书

为 APNs 委托人(即 SSL 证书)提供了非 Apple 颁发的证书。

400

SetPlatformAttributes

APNs - 未提供委托人

未提供 APNs 委托人(即 SSL 证书)。

400

SetPlatformAttributes

APNs - 未提供凭证

未提供 APNs 凭证(即私有密钥)。有关更多信息,请参阅 Amazon Simple Notification Service API 参考中的 CreatePlatformApplication

400

SetPlatformAttributes

APNs - 凭证不是有效的 .pem 格式

APNs 凭证(即私有密钥)不是有效的 .pem 格式。

400

SetPlatformAttributes

FCM - 未提供 serverAPIKey

未提供 FCM 证书(即 API 密钥)。有关更多信息,请参阅 Amazon Simple Notification Service API 参考中的 CreatePlatformApplication

400

SetPlatformAttributes

FCM - serverAPIKey 为空字符串

FCM 证书(即 API 密钥)为 null。

400

SetPlatformAttributes

ADM - 未提供 clientId

未提供客户端 ID 所需的字符串。

400

SetPlatformAttributes

ADM - clientid 为空字符串

客户端 ID 所需的字符串为空。

400

SetPlatformAttributes

ADM - 未提供 clientsecret

未提供必需的客户端密钥。

400

SetPlatformAttributes

ADM - clientsecret 为空字符串

客户端密钥所需的字符串为空。

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

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

终端节点 ARN 无效

终端节点 ARN 无效。

400

DeleteEndpoint

终端节点 ARN 有效,但不属于该用户

终端节点 ARN 有效,但不属于该用户。

403

DeleteEndpoint

终端节点 ARN 无效

终端节点 ARN 无效。

400

SetEndpointAttributes

终端节点 ARN 有效,但不属于该用户

终端节点 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

终端节点 ARN 无效

终端节点 ARN 无效。

400

GetEndpointAttributes

终端节点 ARN 有效,但不属于该用户

终端节点 ARN 有效,但不属于该用户。

403

GetEndpointAttributes

目标 ARN 无效

目标 ARN 无效。

400

Publish

目标 ARN 有效,但不属于该用户

目标 ARN 有效,但不属于该用户。

403

Publish

消息格式无效

消息格式无效。

400

Publish

消息大小超过协议/端节点服务支持的范围

消息大小超过协议/端节点服务支持的范围。

400

Publish