-
Notifications
You must be signed in to change notification settings - Fork 21
Server errors
Andrey Kadochnikov edited this page Feb 20, 2017
·
26 revisions
The MobileMessaging SDK provides an NSError representation for the server error data.
The following example demonstrates how an error code and a message attributes may be retrieved from the error object:
// Swift
MobileMessaging.currentUser?.save(msisdn: "_&*70318xxxxx3",
completion:
{ error in
print(error.localizedDescription) // should print "Invalid MSISDN format [10005]"
print(error.code) // should print "5"
}
)The following table represents the info about all possible server errors:
| Error id | Error text | Description |
|---|---|---|
| 0 | Something went wrong [10000] | This is really unknown, and most likely we are already working to fix things |
| 1 | Invalid Application Id [10001] | The application code you provided to the SDK doesn't exists |
| 3 | Invalid email format [10003] | The user's email that you provided to the SDK has invalid format |
| 5 | Invalid MSISDN format [10005] | The user's MSISDN that you provided to the SDK has invalid format |
| 9 | Failed to sync user data [10009] | The user data that you provided to the SDK has invalid format. More info about User Data |
| 2, 4, 7, 8, 10, 11, 12, 13 | Internal service error [xxxxx] | There is nothing you can do with these errors, except retrying later |
If you have any questions or suggestions, feel free to send an email to support@infobip.com or create an issue.