Obsługa błędów
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Poniżej znajdziesz kody błędów, które mogą wystąpić podczas korzystania z interfejsu Alert Center API, wraz z wyjaśnieniem, jak je interpretować i co robić, gdy się pojawią. Więcej informacji
Kod błędu |
Opis |
Działanie |
400: Nieprawidłowe żądanie |
Ten kod błędu jest zwracany, gdy wystąpił błąd w żądaniu danych wejściowych. |
Sprawdź prośbę, wprowadź w niej wymagane zmiany i spróbuj ponownie. |
401: nieprawidłowe dane logowania |
Token dostępu jest nieprawidłowy lub wygasł. |
Odśwież token dostępu i spróbuj ponownie. |
404 |
Nie znaleziono podanego zasobu. Wyjątek ten zostanie rzucony, gdy żądany alert nie istnieje. |
|
409 |
Podany zasób już istnieje. |
Pobierz zasób i w razie potrzeby zaktualizuj go. |
500 |
Podczas przetwarzania żądania wystąpił nieoczekiwany błąd. |
Ponownie spróbuj ze wzrastającym czasem do ponowienia. |
503 |
Przekroczony limit częstotliwości. |
Ponownie spróbuj z wzrastającym czasem do ponowienia. |
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-03-25 UTC.
[null,null,["Ostatnia aktualizacja: 2025-03-25 UTC."],[],[],null,["# Error Handling\n\nThe following are the error codes you might get when using Alert Center API\nalong with explanation on how to interpret them and guidance on what to do when\nyou get them. [Learn more](/workspace/admin/alertcenter/support).\n\n| **Error code** | **Description** | **Action** |\n|------------------------------|-----------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------|\n| **400: Bad Request** | This error code is returned when there is an error in the input request. | Check the request, make required changes to the request, and try again. |\n| **401: Invalid Credentials** | The access token is invalid or expired. | Refresh the access token and try again. |\n| **404** | The specified resource was not found. This would be thrown when the requested alert does not exist. | |\n| **409** | The specified resource already exists. | Get the resource, and if needed perform an update. |\n| **500** | An unexpected error happened while processing the request. | Retry with [exponential backoff](https://developers.google.com/api-client-library/java/google-http-java-client/backoff). |\n| **503** | Rate limit exceeded. | Retry with [exponential backoff](https://developers.google.com/api-client-library/java/google-http-java-client/backoff). |"]]