সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
Classroom API ত্রুটির তথ্য প্রদান করে যা ডেভেলপারদের সমস্যা ডিবাগ করতে এবং শেষ ব্যবহারকারীদের জন্য সহায়ক, কার্যকরী তথ্য প্রদান করতে সাহায্য করতে পারে। এই গাইড ব্যাখ্যা করে কিভাবে API থেকে প্রত্যাবর্তিত ত্রুটির তথ্য পার্স করতে হয়।
Classroom API দুটি স্তরের ত্রুটি তথ্য প্রদান করে:
হেডারে HTTP ত্রুটি কোড।
অতিরিক্ত বিবরণ সহ প্রতিক্রিয়া বডিতে একটি বস্তু।
ত্রুটি বার্তা গঠন
প্রতিক্রিয়া বডিতে ফিরে আসা ত্রুটিগুলি নিম্নলিখিত ক্ষেত্রগুলি অন্তর্ভুক্ত করে:
message : ত্রুটি সম্পর্কে অতিরিক্ত বিবরণ. উপলভ্য হলে, ত্রুটি বার্তাটি @ এবং একটি নির্দিষ্ট ত্রুটির ধরন দিয়ে প্রিপেন্ড করা হয়। উদাহরণস্বরূপ, @ClassroomApiDisabled ।
status : HTTP অনুরোধের স্থিতি। উদাহরণস্বরূপ, PERMISSION_DENIED বা NOT_FOUND ।
যদি একটি অনুরোধ একটি ClassroomApiDisabled ত্রুটির সাথে ব্যর্থ হয়, তাহলে প্রতিক্রিয়া হবে:
{"error":{"code":403,"message":"@ClassroomApiDisabled The user is not permitted to access the Classroom API.","status":"PERMISSION_DENIED"}}
আপনি ত্রুটির কারণ ডিবাগ করতে এবং ব্যবহারকারীদের সহায়ক তথ্য প্রদান করতে সাহায্য করার জন্য প্রতিক্রিয়া বডি ব্যবহার করতে পারেন। একই স্ট্রিং দিয়ে শুরু হওয়া অন্যান্য মানগুলিকে এড়াতে একটি নির্দিষ্ট ত্রুটি বার্তা পরীক্ষা করার সময় একটি ট্রেলিং স্পেস অন্তর্ভুক্ত করুন৷ প্রদত্ত ত্রুটি উদাহরণে, ব্যবহারকারীদের কাছে উপযুক্ত তথ্য উপস্থাপন করতে আপনি বার্তা ক্ষেত্রটি "@ClassroomApiDisabled " দিয়ে শুরু হয়েছে কিনা তা পরীক্ষা করতে পারেন।
ক্লাসরুম API দ্বারা ফেরত দেওয়া যেতে পারে এমন কিছু ত্রুটির তথ্যের জন্য সাধারণ ত্রুটি পৃষ্ঠাটি উল্লেখ করুন।
[[["সহজে বোঝা যায়","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-01-28 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["The Classroom API provides error information via HTTP error codes in the header and detailed error objects in the response body."],["Error objects in the response body contain a numerical `code`, a detailed `message` potentially including a specific error type prepended with `@`, and an HTTP request `status`."],["Developers can use the error `message` field, particularly by checking for specific prefixes like `@ClassroomApiDisabled `, to debug issues and inform users."],["The error message structure provided by the API allows for the extraction of the HTTP code, the reason behind the error and its status."],["Refer to the Common Errors page to see a detailed list of possible error messages and the actions that can be taken in response to them."]]],[]]