Fehler mit Cloud Storage für C++ behandeln
Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Manchmal läuft bei der Entwicklung einer App nicht alles nach Plan und es tritt ein Fehler auf.
Sehen Sie sich im Zweifelsfall die zurückgegebene Fehlermeldung an.
Wenn Sie die Fehlermeldung geprüft haben und Cloud Storage Security Rules für die Aktion vorhanden sind, aber das Problem weiterhin besteht, rufen Sie unsere Supportseite auf und teilen Sie uns mit, wie wir Ihnen helfen können.
Fehlermeldungen behandeln
Es gibt eine Reihe von Gründen, warum Fehler auftreten können, z. B. wenn die Datei nicht vorhanden ist, der Nutzer keine Berechtigung für den Zugriff auf die gewünschte Datei hat oder der Nutzer den Dateiupload abbricht.
Damit Sie das Problem richtig diagnostizieren und den Fehler beheben können, finden Sie hier eine vollständige Liste aller Fehler, die unser Client ausgibt, und wie sie auftreten können.
Name |
Grund |
kErrorNone |
Es ist kein Fehler aufgetreten. |
kErrorUnknown |
Ein unbekannter Fehler ist aufgetreten. |
kErrorObjectNotFound |
Unter der angegebenen Referenz ist kein Objekt vorhanden. |
kErrorBucketNotFound |
Für Cloud Storage ist kein Bucket konfiguriert. |
kErrorProjectNotFound |
Für Cloud Storage ist kein Projekt konfiguriert. |
kErrorQuotaExceeded |
Das Kontingent für Ihren Cloud Storage-Bucket wurde überschritten. Wenn Sie den Spark-Tarif nutzen, sollten Sie ein Upgrade auf den Blaze-Tarif (Pay as you go) in Betracht ziehen. Wenn Sie bereits den Blaze-Tarif nutzen, wenden Sie sich an den Firebase-Support.
Wichtig: Ab dem 1. Oktober 2025 ist der Blaze-Tarif erforderlich, um Cloud Storage zu verwenden, auch Standard-Buckets. |
kErrorUnauthenticated |
Der Nutzer ist nicht authentifiziert. Authentifizieren Sie sich und versuchen Sie es noch einmal. |
kErrorUnauthorized |
Der Nutzer ist nicht berechtigt, die angeforderte Aktion auszuführen. Prüfen Sie, ob Ihre Regeln korrekt sind. |
kErrorRetryLimitExceeded |
Das maximale Zeitlimit für einen Vorgang (Hochladen, Herunterladen, Löschen usw.) wurde überschritten. Versuche es noch einmal. |
kErrorNonMatchingChecksum |
Die Datei auf dem Client stimmt nicht mit der Prüfsumme der vom Server empfangenen Datei überein. Versuche es noch einmal. |
kErrorCanceled |
Der Nutzer hat den Vorgang abgebrochen. |
kErrorDownloadSizeExceeded |
Die Größe der heruntergeladenen Datei überschreitet die für den Download zugewiesene Speichermenge. Erhöhen Sie die Speicherbegrenzung und versuchen Sie noch einmal, den Bericht herunterzuladen. |
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2025-08-16 (UTC).
[null,null,["Zuletzt aktualisiert: 2025-08-16 (UTC)."],[],[],null,["\u003cbr /\u003e\n\nSometimes when you're building an app, things don't go as planned and an\nerror occurs.\n\nWhen in doubt, check the error returned, and see what the error message says.\n| **Note:** By default, a Cloud Storage for Firebase bucket requires Firebase Authentication to perform any action on the bucket's data or files. You can change your Firebase Security Rules for Cloud Storage to [allow unauthenticated access for specific situations](/docs/storage/security/rules-conditions#public). However, for most situations, we strongly recommend [restricting access and setting up robust security rules](/docs/storage/security/get-started) (especially for production apps). Note that if you use Google App Engine and have a default Cloud Storage bucket with a name format of `*.appspot.com`, you may need to consider [how your security rules impact access to App Engine files](/docs/storage/gcp-integration#security-rules-and-app-engine-files).\n\nIf you've checked the error message and have Cloud Storage Security Rules that allow your\naction, but are still struggling to fix the error, visit our\n[Support page](/support) and let us know how we can help.\n\nHandle Error Messages\n\nThere are a number of reasons why errors may occur, including the file\nnot existing, the user not having permission to access the desired file, or the\nuser cancelling the file upload.\n\nTo properly diagnose the issue and handle the error, here is a full list of\nall the errors our client will raise, and how they can occur.\n\n| Name | Reason |\n|------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `kErrorNone` | There was no error. |\n| `kErrorUnknown` | An unknown error occurred. |\n| `kErrorObjectNotFound` | No object exists at the specified reference. |\n| `kErrorBucketNotFound` | No bucket is configured for Cloud Storage. |\n| `kErrorProjectNotFound` | No project is configured for Cloud Storage. |\n| `kErrorQuotaExceeded` | Quota on your Cloud Storage bucket has been exceeded. If you're on the Spark pricing plan, consider upgrading to the [pay-as-you-go Blaze pricing plan](/pricing). If you're already on the Blaze pricing plan, reach out to Firebase Support. **Important** : Starting October 1, 2025, the [Blaze pricing plan will be *required* to use Cloud Storage](/docs/storage/faqs-storage-changes-announced-sept-2024), even default buckets. |\n| `kErrorUnauthenticated` | User is unauthenticated. Authenticate and try again. |\n| `kErrorUnauthorized` | User is not authorized to perform the requested action. Check your rules to ensure they are correct. |\n| `kErrorRetryLimitExceeded` | The maximum time limit on an operation (upload, download, delete, etc.) has been exceeded. Try uploading again. |\n| `kErrorNonMatchingChecksum` | File on the client does not match the checksum of the file received by the server. Try uploading again. |\n| `kErrorCanceled` | User canceled the operation. |\n| `kErrorDownloadSizeExceeded` | Size of the downloaded file exceeds the amount of memory allocated for the download. Increase memory cap and try downloading again. |"]]