Errors And Troubleshooting

Oops! Sorry. Below are some common errors and how your app should respond to them.

During the OAuth2 process, there are a few common issues that you might run into. They are listed below:

1. Invalid Redirect URL

545

Invalid Redirect URL

This error can show for a number of reasons:

  • Your request to /oauth2/authorize didn't include the client_id parameter
  • The client_id in the query to /oauth2/authorize doesn't match the Client ID of your property in the Swoop Dashboard.

2. Invalid Client ID

565

Invalid Client ID

This error can show for a number of reasons:

  • Your request to /oauth2/authorize didn't include the redirect_uri parameter
  • The redirect_uri in the query to /oauth2/authorize doesn't match the Redirect URI specified in the Swoop Dashboard for the given property.

The following errors will trigger a redirect to your REDIRECT_URL with a query named error and error_description detailing which error occurred.

3. invalid_request

This error can occur for a number of reasons:

  • Your request to /oauth2/authorize didn't include the scope parameter
  • Your request to /oauth2/authorize didn't include the response_type parameter

4. unsupported_response_type

Swoop currently supports the code response type. This may change in the future, however your request must contain response_type=code.

5.invalid_scope

Swoop only supports scope=email. Any other scope requests will be denied.