Обработка ошибок облачного хранилища на платформах Apple
Оптимизируйте свои подборки
Сохраняйте и классифицируйте контент в соответствии со своими настройками.
Иногда при создании приложения что-то идет не по плану и возникает ошибка.
В случае сомнений проверьте возвращаемую ошибку и посмотрите, что говорится в сообщении об ошибке.
Если вы проверили сообщение об ошибке и у вас есть Cloud Storage Security Rules , которые разрешают ваши действия, но вы все еще не можете исправить ошибку, посетите нашу страницу поддержки и сообщите нам, как мы можем вам помочь.
Обработка сообщений об ошибках
Существует ряд причин возникновения ошибок, включая отсутствие файла, отсутствие у пользователя разрешения на доступ к нужному файлу или отмену пользователем загрузки файла.
Чтобы правильно диагностировать проблему и устранить ее, ниже приведен полный список всех ошибок, о которых сообщит наш клиент, а также причины их возникновения.
Имя
Причина
FIRStorageErrorCodeUnknown
Произошла неизвестная ошибка.
FIRStorageErrorCodeObjectNotFound
По указанной ссылке не существует ни одного объекта.
FIRStorageErrorCodeBucketNotFound
Для Cloud Storage не настроено ни одно хранилище.
FIRStorageErrorCodeProjectNotFound
Ни один проект не настроен для Cloud Storage .
FIRStorageErrorCodeQuotaExceeded
Превышена квота на ваш контейнер Cloud Storage . Если вы используете тарифный план Spark, рассмотрите возможность перехода на тарифный план Blaze с оплатой по мере использования . Если вы уже используете тарифный план Blaze, обратитесь в службу поддержки Firebase.
[[["Прост для понимания","easyToUnderstand","thumb-up"],["Помог мне решить мою проблему","solvedMyProblem","thumb-up"],["Другое","otherUp","thumb-up"]],[["Отсутствует нужная мне информация","missingTheInformationINeed","thumb-down"],["Слишком сложен/слишком много шагов","tooComplicatedTooManySteps","thumb-down"],["Устарел","outOfDate","thumb-down"],["Проблема с переводом текста","translationIssue","thumb-down"],["Проблемы образцов/кода","samplesCodeIssue","thumb-down"],["Другое","otherDown","thumb-down"]],["Последнее обновление: 2025-09-04 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| `FIRStorageErrorCodeUnknown` | An unknown error occurred. |\n| `FIRStorageErrorCodeObjectNotFound` | No object exists at the specified reference. |\n| `FIRStorageErrorCodeBucketNotFound` | No bucket is configured for Cloud Storage. |\n| `FIRStorageErrorCodeProjectNotFound` | No project is configured for Cloud Storage. |\n| `FIRStorageErrorCodeQuotaExceeded` | 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| `FIRStorageErrorCodeUnauthenticated` | User is unauthenticated. Authenticate and try again. |\n| `FIRStorageErrorCodeUnauthorized` | User is not authorized to perform the requested action. Check your rules to ensure they are correct. |\n| `FIRStorageErrorCodeRetryLimitExceeded` | The maximum time limit on an operation (upload, download, delete, etc.) has been exceeded. Try uploading again. |\n| `FIRStorageErrorCodeNonMatchingChecksum` | File on the client does not match the checksum of the file received by the server. Try uploading again. |\n| `FIRStorageErrorCodeCanceled` | User canceled the operation. |\n| `FIRStorageErrorCodeDownloadSizeExceeded` | Size of the downloaded file exceeds the amount of memory allocated for the download. Increase memory cap and try downloading again. |"]]