Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Interfejs Maps Datasets API zwraca komunikaty o błędach w ramach odpowiedzi. Jeśli na przykład pominiesz token OAuth w żądaniu lub jeśli wygasł, żądanie zwróci:
{"error":{"code":401,"message":"Request is missing required authentication credential. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.","status":"UNAUTHENTICATED","details":[{"@type":"type.googleapis.com/google.rpc.ErrorInfo","reason":"CREDENTIALS_MISSING","domain":"googleapis.com","metadata":{"method":"google.maps.mapsplatformdatasets.v1alpha.MapsPlatformDatasetsV1Alpha.ListDatasets","service":"mapsplatformdatasets.googleapis.com"}}]}}
Jeśli podczas tworzenia zbioru danych pominiesz wymagany parametr treści, np. displayName, żądanie zwraca:
{"error":{"code":400,"message":"display_name: Display name must be provided","status":"INVALID_ARGUMENT"}}
Jeśli podasz nieprawidłowy identyfikator zbioru danych, żądanie zwróci:
{"error":{"code":404,"message":"Dataset not found","status":"NOT_FOUND"}}
Więcej informacji o błędach i ich obsłudze znajdziesz w artykule Błędy.
[[["Łatwo zrozumieć","easyToUnderstand","thumb-up"],["Rozwiązało to mój problem","solvedMyProblem","thumb-up"],["Inne","otherUp","thumb-up"]],[["Brak potrzebnych mi informacji","missingTheInformationINeed","thumb-down"],["Zbyt skomplikowane / zbyt wiele czynności do wykonania","tooComplicatedTooManySteps","thumb-down"],["Nieaktualne treści","outOfDate","thumb-down"],["Problem z tłumaczeniem","translationIssue","thumb-down"],["Problem z przykładami/kodem","samplesCodeIssue","thumb-down"],["Inne","otherDown","thumb-down"]],["Ostatnia aktualizacja: 2025-01-14 UTC."],[[["The Maps Datasets API returns errors with codes, messages, and status information to help you troubleshoot issues."],["Common errors include missing or expired authentication credentials (401), missing required parameters (400), and invalid dataset IDs (404)."],["Error responses provide details about the cause of the error, such as the missing credential or parameter."],["Refer to the Google Cloud error documentation for comprehensive information on error handling and troubleshooting."]]],[]]