When receiving an error response from SNS, NSError.code is always AWSSNSErrorUnknown and userInfo is nil.
It's probably because the code of error handling changed in 2.4.8.
https://github.com/aws/aws-sdk-ios/blob/master/AWSSNS/AWSSNSService.m#L68
The format of the error response received here is as follows
<ErrorResponse xmlns="http://sns.amazonaws.com/doc/2010-03-31/">
<Error>
<Type>Sender</Type>
<Code>InvalidParameter</Code>
<Message>Invalid parameter: Token Reason: Endpoint arn:aws:sns:... already exists with the same Token, but different attributes.</Message>
</Error>
<RequestId>...</RequestId>
</ErrorResponse>
If the code is 2.4.7 or earlier, error information is successfully acquired.
Thanks we will fix this in the next release
Fixed with 2.5.6.
Thanks,
Rohan
I tried 2.5.6, but nothing seems to be changed.
Would you please check it again.
@karthiksaligrama @rohandubal