Troubleshooting Authorization Errors on iOS

AuthorizationError.swift defines the code, description, and errorType to help developers debug the error or present a description to the user. The errorType is of type ErrorType which identifies a class of error during the Authorization flow, such asinvalidRequest or requestDenied. When creating a recovery suggestion or diagnosing an issue, the error's code and description helps provide context and a possible remedy.

The following table summarizes the AuthorizationError error types and potential recovery suggestions for each.

Error Type (Case)

Possible Cause

How to Remedy

invalidRequest

The request made is invalid.

Check the parameters passed to the authorization call.

requestDenied

The user or carrier denied the request was denied.

Display an appropriate feedback message to the user.

requestTimeout

The request timed out.

Display an appropriate feedback message, such as "Unable to reach the server, please try again" or "Poor network connection."

serverError

There was an error on the server.

Please try again later.

networkFailure

There was a problem communicating over the network.

Advise the user to check their connection and try again.

configurationError

There is an error configuring the SDK.

Check your local code configuration with the configuration on the developer portal.

discoveryStateError

There is an inconsistency with the user's state.

Check your local code configuration with the configuration on the developer portal.

unknownError

An unknown error has occurred.

If the problem persists, contact support.


Did this page help you?