Getting “EndpointDisabled” from Amazon SNS

前端 未结 9 1050
深忆病人
深忆病人 2020-12-23 11:34

I\'m using Amazon SNS. Notifications work well, but sometimes I get this error:

{
    \"message\": \"Endpoint is disabled\",
    \"code\": \"EndpointDisabled         


        
9条回答
  •  甜味超标
    2020-12-23 11:55

    According to http://docs.aws.amazon.com/sns/latest/APIReference/API_Publish.html that means that the endpoint is disabled.

    From http://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/com/amazonaws/services/sns/model/SetEndpointAttributesRequest.html:

    Enabled -- flag that enables/disables delivery to the endpoint. Message Processor will set this to false when a notification service indicates to SNS that the endpoint is invalid. Users can set it back to true, typically after updating Token.

    "notification service" in this case is referring to Google's GCM, Apples APNS or Amazon's ADM.

提交回复
热议问题