Gestione degli errori
Di seguito sono riportati i codici di errore che potresti ricevere quando utilizzi l'API Alert Center, insieme a una spiegazione su come interpretarli e indicazioni su cosa fare quando li ricevi. Ulteriori informazioni.
Codice di errore |
Descrizione |
Azione |
400: richiesta non valida |
Questo codice di errore viene restituito quando si verifica un errore nella richiesta di input. |
Controlla la richiesta, apporta le modifiche necessarie e riprova. |
401: Credenziali non valide |
Il token di accesso non è valido o è scaduto. |
Aggiorna il token di accesso e riprova. |
404 |
La risorsa specificata non è stata trovata. Viene generato quando l'avviso richiesto non esiste. |
|
409 |
La risorsa specificata esiste già. |
Recupera la risorsa ed esegui un aggiornamento, se necessario. |
500 |
Si è verificato un errore imprevisto durante l'elaborazione della richiesta. |
Riprova con il backoff esponenziale. |
503 |
È stato superato il limite di frequenza. |
Riprova con il backoff esponenziale. |
Salvo quando diversamente specificato, i contenuti di questa pagina sono concessi in base alla licenza Creative Commons Attribution 4.0, mentre gli esempi di codice sono concessi in base alla licenza Apache 2.0. Per ulteriori dettagli, consulta le norme del sito di Google Developers. Java è un marchio registrato di Oracle e/o delle sue consociate.
Ultimo aggiornamento 2024-11-18 UTC.
[null,null,["Ultimo aggiornamento 2024-11-18 UTC."],[[["This page lists error codes you might encounter when using the Alert Center API, along with their descriptions and suggested actions."],["Error codes range from bad requests (400) to server errors (500) and include issues like invalid credentials and rate limiting."],["Each error code has a recommended action, such as checking the request or refreshing the access token, to help you resolve the issue."],["For unexpected errors (500) and rate limiting (503), retrying with exponential backoff is recommended."]]],["The Alert Center API uses several error codes: 400 indicates a bad request requiring corrections, 401 means the access token needs refreshing, 404 signifies a missing resource. 409 denotes a pre-existing resource requiring retrieval and potential update. 500 signifies an unexpected error, and 503 means the rate limit was exceeded; both necessitate retries using exponential backoff. Each error code offers specific actions for resolution.\n"]]