ত্রুটি কোড এবং ব্যতিক্রম
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
API ত্রুটি প্রতিক্রিয়া
নিম্নলিখিত সারণী ত্রুটি কোডগুলি ব্যাখ্যা করে যা Google Wallet API দ্বারা ফেরত দেওয়া হতে পারে, তাদের সম্ভাব্য কারণগুলি এবং সমাধানগুলি৷
ব্যতিক্রম | উদাহরণ বার্তা | সাজেশন |
---|
400 - BadRequestException | অনুরোধে একটি অবৈধ যুক্তি রয়েছে৷ অবৈধ রিসোর্স আইডি: {1234567891234567899 - ABCD1234567}। | প্রকার, বিন্যাস এবং দৈর্ঘ্যের জন্য ডেটা কাঠামো পরীক্ষা করুন এবং সঠিক যুক্তি পাস করুন। |
403 - PermissionDeniedException | অনুমতি অস্বীকার করা হয়েছে | নিশ্চিত করুন যে সঠিক পরিষেবা অ্যাকাউন্ট ইমেলটি আপনার ব্যবসায়িক পে এবং ওয়ালেট কনসোলের মধ্যে একজন অনুমোদিত ব্যবহারকারী। |
404 - NotFoundException | ওয়ালেট অবজেক্ট {1234567891234567899.SampleClubCardxf6a8edf-87ca-4022-a813-694cc57e9fd3} পাওয়া যায়নি। | একটি PATCH বা PUT অনুরোধের আগে চেষ্টা করার আগে অবজেক্ট আইডিতে একটি GET সম্পাদন করুন যাতে আপনার কাছে আপডেট করার জন্য একটি বস্তু আছে এবং এটি সর্বশেষ। |
404 - IssuerClassNotFoundException | ওয়ালেট অবজেক্ট ক্লাস {1234567891234567899.ABCD.1234567} পাওয়া যায়নি। | একটি আপডেট সম্পাদন করার সময়, নিশ্চিত করুন যে আপনি একটি PATCH বা PUT অনুরোধের আগে একটি GET অনুরোধ করেছেন তা নিশ্চিত করার জন্য আপনার কাছে একটি ক্লাস আছে যেটি এটি সর্বশেষ ক্লাস। অনুরোধে সঠিক পেলোড (বস্তু এবং শ্রেণী) সঠিকভাবে ব্যবহার করা হচ্ছে তাও নিশ্চিত করুন। |
409 - ইতিমধ্যেই বিদ্যমান ব্যতিক্রম | ওয়ালেট অবজেক্ট ক্লাস {1234567891234567899.ABCD.1234567} ইতিমধ্যেই বিদ্যমান। | একই ক্লাস আইডি তৈরি করার চেষ্টা করার আগে ক্লাস আইডিতে একটি GET সম্পাদন করুন। যদি সংস্থানটি বিদ্যমান থাকে তবে আপনি PATCH বা PUT ব্যবহার করতে চাইতে পারেন। |
ওয়েব ভিত্তিক ত্রুটি বার্তা
আপনি 'Google Wallet এ যোগ করুন' লিঙ্ক ব্যবহার করে পাস সংরক্ষণ করার চেষ্টা করার সময় কিছু ভুল হলে, আপনাকে ডিবাগ করতে সাহায্য করার জন্য একটি তথ্যপূর্ণ ত্রুটি বার্তা দেখানো হবে৷ এই বার্তাগুলি শুধুমাত্র সেই ব্যবহারকারীদের দেখানো হয় যাদের সংশ্লিষ্ট ইস্যুকারী অ্যাকাউন্টের জন্য 'ডেভেলপার' বা 'প্রশাসন' ভূমিকা রয়েছে।
প্রদর্শিত হতে পারে এমন ত্রুটি বার্তার ধরনটির একটি উদাহরণ এখানে রয়েছে:
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-08-29 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-08-29 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["\u003cp\u003eThis page explains the different error codes that may be returned by the Google Wallet API, including BadRequestException, PermissionDeniedException, NotFoundException, IssuerClassNotFoundException, and AlreadyExistsException.\u003c/p\u003e\n"],["\u003cp\u003eEach error code has an explanation for the possible causes and suggestions for solutions, focusing on data structure validation, service account authorization, object and class ID verification, and using appropriate HTTP methods like GET, PATCH, or PUT.\u003c/p\u003e\n"],["\u003cp\u003eThe table provides example error messages to help with troubleshooting, along with links to relevant documentation for further assistance.\u003c/p\u003e\n"],["\u003cp\u003eFor 'Add to Google Wallet' links, web-based error messages are displayed for users with 'Developer' or 'Admin' roles to assist with debugging, offering insights into the issue.\u003c/p\u003e\n"]]],["The Google Wallet API returns specific error codes: 400 (BadRequestException) indicates an invalid argument, requiring checks on data structure. 403 (PermissionDeniedException) means the service account lacks authorization. 404 (NotFoundException) signals a missing Wallet Object or Class, needing a GET request before PATCH/PUT actions. 409 (AlreadyExistsException) indicates an existing class, suggesting a GET request and potential PATCH/PUT instead of creating it again. Web errors are displayed to developers and admins.\n"],null,["# Error codes and exceptions\n\nAPI error responses\n-------------------\n\nThe following table explains error codes that mayn be returned by the Google Wallet API, their possible causes, and solutions.\n\n| Exception | Example Message | Suggestion |\n|------------------------------------|---------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| 400 - BadRequestException | Request contains an invalid argument. Invalid resource ID: {1234567891234567899 - ABCD1234567}. | Check the data structure for type, format and length and pass the correct argument. |\n| 403 - PermissionDeniedException | Permission Denied | Ensure the correct [Service Account](https://developers.google.com/wallet/retail/loyalty-cards/web/prerequisites#4.-authorize-the-service-account) email is an authorized user within your Business Pay and Wallet Console. |\n| 404 - NotFoundException | Wallet Object {1234567891234567899.SampleClubCardxf6a8edf-87ca-4022-a813-694cc57e9fd3} not found. | Perform a [GET](https://developers.google.com/wallet/generic/rest/v1/genericclass/get#http-request) on the Object ID before trying before a [PATCH](https://developers.google.com/wallet/generic/rest/v1/genericclass/patch#http-request) or [PUT](https://developers.google.com/wallet/generic/rest/v1/genericclass/update#http-request) request to ensure you have an object to update and that it's the latest. |\n| 404 - IssuerClassNotFoundException | Wallet Object Class {1234567891234567899.ABCD.1234567} not found. | When performing an update , ensure you do a [GET](https://developers.google.com/wallet/generic/rest/v1/genericclass/get#http-request) request before a [PATCH](https://developers.google.com/wallet/generic/rest/v1/genericclass/patch#http-request) or [PUT](https://developers.google.com/wallet/generic/rest/v1/genericclass/update#http-request) request to ensure you have a class to reference that it's the latest class. Also ensure the correct payload (object and class) is being used in the request correctly. |\n| 409 - AlreadyExistsException | Wallet Object Class {1234567891234567899.ABCD.1234567} already exists. | Perform a [GET](https://developers.google.com/wallet/generic/rest/v1/genericclass/get#http-request) on the Class ID before trying to create the same Class ID. If the resource exists you may want to use [PATCH](https://developers.google.com/wallet/generic/rest/v1/genericclass/patch#http-request) or [PUT.](https://developers.google.com/wallet/generic/rest/v1/genericclass/update#http-request) |\n\nWeb-based error messages\n------------------------\n\nIf something goes wrong when you attempt to save a pass using an 'Add to Google Wallet' link, you will be shown an informative error message to help you debug. These messages are only shown to users that have the 'Developer' or 'Admin' role for the associated Issuer account.\n\nHere is an example of the type of error message that might be displayed:"]]