# Troubleshoot issues

You can resolve common Google API errors by enabling required services and
verifying caller permissions in your Google Cloud project. You should apply
exponential backoff retries to recover from transient quota failures.

### What does the "service not enabled" error mean?

To use any Google API service, you need to:

1. Create or use an existing Google Cloud project.
2. Enable the service for the Google Cloud project.
3. Pass an API key or an OAuth access token associated with the Google Cloud project.

To learn more about using API keys, see
[Authentication for Google Cloud APIs and services](https://docs.cloud.google.com/docs/authentication.md.txt). To
fix this error, enable the Service Usage API for your Google Cloud project
using the instructions in
[Enable and disable services](https://docs.cloud.google.com/service-usage/docs/enable-disable.md.txt).

### How do I perform a retry on API errors?

If you receive an API error and want to retry the call, we recommend that you
perform the retry with exponential intervals plus randomness. Use the following
minimum retry intervals for the indicated errors:

- 30 seconds for `429` quota errors.
- 1 second for `500` quota errors.
- 1 second for `503` quota errors.

For other errors, make sure you perform retries based on additional error
information. See
[`google.rpc.Code`](https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto)
for more details.