ফ্লটারে ক্লাউড স্টোরেজের জন্য ত্রুটিগুলি পরিচালনা করুন৷
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
কখনও কখনও আপনি যখন একটি অ্যাপ তৈরি করছেন, জিনিসগুলি পরিকল্পনা অনুযায়ী যায় না এবং একটি ত্রুটি ঘটে!
সন্দেহ হলে, ফাংশন দ্বারা নিক্ষিপ্ত ব্যতিক্রমটি ধরুন এবং ত্রুটি বার্তাটি কী বলে তা দেখুন।
final storageRef = FirebaseStorage.instance.ref().child("files/uid");
try {
final listResult = await storageRef.listAll();
} on FirebaseException catch (e) {
// Caught an exception from Firebase.
print("Failed with error '${e.code}': ${e.message}");
}
ত্রুটি বার্তা পরিচালনা করুন
ফাইলটি বিদ্যমান না থাকা, ব্যবহারকারীর পছন্দসই ফাইল অ্যাক্সেস করার অনুমতি না থাকা বা ব্যবহারকারী ফাইল আপলোড বাতিল করা সহ ত্রুটিগুলি ঘটতে পারে এমন অনেকগুলি কারণ রয়েছে৷
সমস্যাটি সঠিকভাবে নির্ণয় করতে এবং ত্রুটিটি পরিচালনা করতে, আমাদের ক্লায়েন্ট যে সমস্ত ত্রুটিগুলি উত্থাপন করবে এবং সেগুলি কীভাবে ঘটেছে তার একটি সম্পূর্ণ তালিকা এখানে রয়েছে৷
কোড | বর্ণনা |
---|
storage/unknown | একটি অজানা ত্রুটি ঘটেছে. |
storage/object-not-found | পছন্দসই রেফারেন্সে কোন বস্তু বিদ্যমান নেই। |
storage/bucket-not-found | ক্লাউড স্টোরেজের জন্য কোনো বালতি কনফিগার করা নেই |
storage/project-not-found | ক্লাউড স্টোরেজের জন্য কোনো প্রজেক্ট কনফিগার করা নেই |
storage/quota-exceeded | আপনার Cloud Storage বাকেটের কোটা অতিক্রম করা হয়েছে। আপনি যদি স্পার্ক প্রাইসিং প্ল্যানে থাকেন, তাহলে পে-অ্যাজ-ইউ-গো ব্লেজ প্রাইসিং প্ল্যানে আপগ্রেড করার কথা বিবেচনা করুন। আপনি যদি ইতিমধ্যেই Blaze মূল্য নির্ধারণের পরিকল্পনায় থাকেন, তাহলে Firebase সহায়তার সাথে যোগাযোগ করুন।
গুরুত্বপূর্ণ : 1 অক্টোবর, 2025 থেকে, Cloud Storage , এমনকি ডিফল্ট বালতি ব্যবহার করার জন্য Blaze মূল্য পরিকল্পনার প্রয়োজন হবে । |
storage/unauthenticated | ব্যবহারকারী অননুমোদিত, অনুগ্রহ করে প্রমাণীকরণ করুন এবং আবার চেষ্টা করুন। |
storage/unauthorized | ব্যবহারকারী পছন্দসই ক্রিয়া সম্পাদনের জন্য অনুমোদিত নয়, সেগুলি সঠিক কিনা তা নিশ্চিত করতে আপনার নিরাপত্তা নিয়মগুলি পরীক্ষা করুন৷ |
storage/retry-limit-exceeded | একটি অপারেশনের সর্বোচ্চ সময়সীমা (আপলোড, ডাউনলোড, মুছে ফেলা, ইত্যাদি) অতিক্রম করা হয়েছে৷ আবার আপলোড করার চেষ্টা করুন। |
storage/invalid-checksum | ক্লায়েন্টের ফাইল সার্ভার দ্বারা প্রাপ্ত ফাইলের চেকসামের সাথে মেলে না। আবার আপলোড করার চেষ্টা করুন। |
storage/canceled | ব্যবহারকারী অপারেশন বাতিল করেছেন. |
storage/invalid-event-name | অবৈধ ইভেন্ট নাম প্রদান করা হয়েছে. [ running , progress , pause ] এর মধ্যে একটি হতে হবে |
storage/invalid-url | refFromURL() এ অবৈধ URL প্রদান করা হয়েছে। ফর্মের হতে হবে: gs://bucket/object বা https://firebasestorage.googleapis.com/v0/b/bucket/o/object?token=<TOKEN> |
storage/invalid-argument | put() -এ পাস করা আর্গুমেন্ট অবশ্যই File , Blob , অথবা UInt8 অ্যারে হতে হবে। putString() -এ পাস করা আর্গুমেন্টটি অবশ্যই একটি raw, Base64 বা Base64URL স্ট্রিং হতে হবে। |
storage/no-default-bucket | আপনার কনফিগারেশনের storageBucket সম্পত্তিতে কোন বালতি সেট করা হয়নি। |
storage/cannot-slice-blob | স্থানীয় ফাইল পরিবর্তিত হলে সাধারণত ঘটে (মুছে ফেলা, আবার সংরক্ষিত, ইত্যাদি)। ফাইলটি পরিবর্তিত হয়নি তা যাচাই করার পরে আবার আপলোড করার চেষ্টা করুন৷ |
storage/server-file-wrong-size | ক্লায়েন্টের ফাইল সার্ভার দ্বারা প্রাপ্ত ফাইলের আকারের সাথে মেলে না। আবার আপলোড করার চেষ্টা করুন। |
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-07-25 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-07-25 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, catch the exception thrown by the function\nand see what the error message has to say. \n\n final storageRef = FirebaseStorage.instance.ref().child(\"files/uid\");\n try {\n final listResult = await storageRef.listAll();\n } on FirebaseException catch (e) {\n // Caught an exception from Firebase.\n print(\"Failed with error '${e.code}': ${e.message}\");\n }\n\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\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 occurred.\n\n| Code | Description |\n|----------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `storage/unknown` | An unknown error occurred. |\n| `storage/object-not-found` | No object exists at the desired reference. |\n| `storage/bucket-not-found` | No bucket is configured for Cloud Storage |\n| `storage/project-not-found` | No project is configured for Cloud Storage |\n| `storage/quota-exceeded` | 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| `storage/unauthenticated` | User is unauthenticated, please authenticate and try again. |\n| `storage/unauthorized` | User is not authorized to perform the desired action, check your security rules to ensure they are correct. |\n| `storage/retry-limit-exceeded` | The maximum time limit on an operation (upload, download, delete, etc.) has been excceded. Try uploading again. |\n| `storage/invalid-checksum` | File on the client does not match the checksum of the file received by the server. Try uploading again. |\n| `storage/canceled` | User canceled the operation. |\n| `storage/invalid-event-name` | Invalid event name provided. Must be one of \\[`running`, `progress`, `pause`\\] |\n| `storage/invalid-url` | Invalid URL provided to `refFromURL()`. Must be of the form: `gs://bucket/object` or `https://firebasestorage.googleapis.com/v0/b/bucket/o/object?token=\u003cTOKEN\u003e` |\n| `storage/invalid-argument` | The argument passed to `put()` must be `File`, `Blob`, or `UInt8` Array. The argument passed to `putString()` must be a raw, `Base64`, or `Base64URL` string. |\n| `storage/no-default-bucket` | No bucket has been set in your config's `storageBucket` property. |\n| `storage/cannot-slice-blob` | Commonly occurs when the local file has changed (deleted, saved again, etc.). Try uploading again after verifying that the file hasn't changed. |\n| `storage/server-file-wrong-size` | File on the client does not match the size of the file received by the server. Try uploading again. |"]]