Come faccio a correggere gli errori di autorizzazione negata?
In genere, questi errori indicano che il chiamante non dispone dell'autorizzazione Identity and Access Management corretta. Per informazioni dettagliate su come correggere questo errore, consulta la guida al controllo dell'accesso.
Come faccio a eseguire un nuovo tentativo in caso di errori dell'API?
Se ricevi un errore dell'API e vuoi riprovare a effettuare la chiamata, ti consigliamo di eseguire il nuovo tentativo con intervalli esponenziali e casualità. Utilizza i seguenti
intervalli minimi di ripetizione per gli errori indicati:
30 secondi per 429 errori di quota.
1 secondo per gli errori di quota 500.
1 secondo per gli errori di quota 503.
Per altri errori, assicurati di eseguire i tentativi in base a informazioni aggiuntive sull'errore. Per ulteriori dettagli, consulta
google.rpc.Code.
[[["Facile da capire","easyToUnderstand","thumb-up"],["Il problema è stato risolto","solvedMyProblem","thumb-up"],["Altra","otherUp","thumb-up"]],[["Difficile da capire","hardToUnderstand","thumb-down"],["Informazioni o codice di esempio errati","incorrectInformationOrSampleCode","thumb-down"],["Mancano le informazioni o gli esempi di cui ho bisogno","missingTheInformationSamplesINeed","thumb-down"],["Problema di traduzione","translationIssue","thumb-down"],["Altra","otherDown","thumb-down"]],["Ultimo aggiornamento 2025-09-04 UTC."],[],[],null,["# Troubleshooting\n===============\n\n### What does the \"service not enabled\" error mean?\n\nTo use any Google API service, you need to:\n\n1. Create or use an existing Google Cloud project.\n2. Enable the service for the Google Cloud project.\n3. Pass an API key or an OAuth access token associated with the Google Cloud project.\n\nTo learn more about using API keys, see\n[Authentication Overview](/docs/authentication). To fix this error, enable the\nService Usage API for your Google Cloud project using the instructions in\n[Enabling and Disabling Services](/service-usage/docs/enable-disable).\n\n### How do I fix permission denied errors?\n\nSuch errors typically mean the caller doesn't have the right\n[Identity and Access Management](/iam) permission. See the\n[Access Control](/service-usage/docs/access-control) guide for details on how to\nfix this error.\n\n### How do I perform a retry on API errors?\n\nIf you receive an API error and want to retry the call, we recommend that you\nperform the retry with exponential intervals plus randomness. Use the following\nminimum retry intervals for the indicated errors:\n\n- 30 seconds for `429` quota errors.\n- 1 second for `500` quota errors.\n- 1 second for `503` quota errors.\n\nFor other errors, make sure you perform retries based on additional error\ninformation. See\n[`google.rpc.Code`](https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto)\nfor more details."]]