गड़बड़ियों को मैनेज करना
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
यूरोपियन इकनॉमिक एरिया (ईईए) के डेवलपर
अनुरोध करने के बाद, आपको ऐसा जवाब मिल सकता है जिसमें गड़बड़ी की जानकारी शामिल हो.
2D टाइल और Street View की इमेज
यहां दी गई सूची में उन गड़बड़ियों के बारे में बताया गया है जो 2D टाइल और Street View की इमेज का इस्तेमाल करते समय हो सकती हैं.
लिस्टिंग में गड़बड़ी
यहां दी गई सूची में, Map Tiles API का इस्तेमाल करते समय आने वाली गड़बड़ियों के बारे में बताया गया है.
required
- आपके अनुरोध में यूआरएल पैरामीटर मौजूद नहीं है. ध्यान दें कि गड़बड़ी के मैसेज से पता चलता है कि कौनसा पैरामीटर मौजूद नहीं है.
notFound
, invalid
आपकी x
, y
या z
वैल्यू, तय सीमा से बाहर हैं.
मैप की सामान्य टाइलों के लिए, ज़ूम करने का ज़्यादा से ज़्यादा लेवल, मैप की किसी खास टाइल और आपके अनुरोध किए गए मैप के विकल्पों पर निर्भर करता है.
मैप की सामान्य टाइलों के लिए, x कोऑर्डिनेट इस रेंज में होना चाहिए
[0, (2^zoom)-1].
सामान्य मैप टाइल के लिए, y कोऑर्डिनेट इस रेंज में होना चाहिए
[0, (2^(zoom-1))-1].
स्ट्रीट व्यू टाइल के लिए, ज़ूम का लेवल शून्य से पांच के बीच होना चाहिए.
स्ट्रीट व्यू टाइल के लिए, x और y कोऑर्डिनेट की रेंज, लेवल पांच ज़ूम तक सामान्य मैप टाइल के जैसी ही होती है. इस पॉइंट पर, ज़्यादा से ज़्यादा वैल्यू imageHeight
या imagewidth
को tileHeight
या tileWidth
से भाग देने पर मिलती है.
forbidden
:
संभावित कारण:
अनुरोध में मान्य एपीआई पासकोड मौजूद नहीं है.
मैसेज: Your request cannot be served. Please ensure the parameters and
request type are valid for your account and region.
यूरोपियन इकनॉमिक एरिया (ईईए) के पते वाले बिलिंग खाते से लिंक किए गए प्रोजेक्ट में, 2D सैटलाइट टाइलें उपलब्ध नहीं हैं. ज़्यादा जानकारी के लिए, ईईए में रहने वाले खरीदारों के लिए Map Tiles API में किए गए बदलाव लेख पढ़ें.
expired
- आपके
session
टोकन की समयसीमा खत्म हो गई है. सेशन टोकन, बनाए जाने के समय से दो हफ़्तों तक मान्य होता है. ध्यान दें कि इसमें बिना किसी सूचना के बदलाव किया जा सकता है. अगर आपको यह गड़बड़ी मिलती है, तो आपको नया सेशन टोकन पाना होगा. इसके बारे में सेशन टोकन का इस्तेमाल करना लेख में बताया गया है.
badRequest
आपका अनुरोध सही नहीं है. ऐसा इन वजहों से हो सकता है:
आपने terrain
लेयर शामिल किए बिना, terrain
मैप टाइप चुना है.roadmap
आपने रोडमैप के अलावा किसी अन्य मैप टाइप के लिए styles
ऐरे शामिल किया है.
आपने Street View के मेटाडेटा के अनुरोध में, अक्षांश/देशांतर की वैल्यू के साथ-साथ पैनोरामा आईडी भेजा है.
quotaExceeded
, rateLimitExceeded
आपके ऐप्लिकेशन ने तय सीमा से ज़्यादा क्वेरी भेजी हैं या हर सेकंड में तय सीमा से ज़्यादा क्वेरी भेजी हैं.
गड़बड़ी का उदाहरण
{
"error": {
"code": 403,
"message": "The request is missing a valid API key.",
"errors": [
{
"message": "The request is missing a valid API key.",
"domain": "global",
"reason": "forbidden"
}
],
"status": "PERMISSION_DENIED"
}
}
अनुरोधों को फिर से आज़माना
quotaExceeded
और rateLimitExceeded
गड़बड़ियों की वजह से अनुरोध पूरे न होने पर, आपको अनुरोध फिर से करना चाहिए. हालांकि, आपको यह ध्यान रखना चाहिए कि इससे Google के सर्वर पर गड़बड़ी वाले अनुरोध या बड़े पैमाने पर अनुरोध पूरे न होने की समस्या न आए. ऐसा इसलिए, क्योंकि कई क्लाइंट तुरंत अनुरोध फिर से करने की कोशिश करते हैं. इसका मतलब है कि अनुरोधों को फिर से भेजने के लिए, एक्सपोनेंशियल बैकऑफ़ का इस्तेमाल करना. एक्सपोनेंशियल बैकऑफ़ की वजह से, आपको अपने अनुरोधों को समय के हिसाब से फैलाना पड़ता है, ताकि सर्वर को ठीक होने का समय मिल सके.
उदाहरण के लिए, अगर कोई अनुरोध पूरा नहीं होता है, तो एक सेकंड बाद फिर से कोशिश करें. अगर यह कोशिश भी कामयाब नहीं होती है, तो दो सेकंड बाद फिर से अनुरोध करें. अगर यह अनुरोध भी पूरा नहीं होता है, तो चार सेकंड बाद फिर से कोशिश करें. इसलिए, हर अनुरोध के बीच के समय को दोगुना करके, हर अनुरोध को असरदार तरीके से फैलाया जाता है.
3D टाइल
Google के सर्वर से मिलने वाली गड़बड़ियां आपको शायद न दिखें, क्योंकि फ़ोटो जैसा दिखने वाली टाइलें रेंडरर के ज़रिए ऐक्सेस की जाती हैं. रेंडरर, सर्वर की गड़बड़ियों को ठीक करने के लिए ज़िम्मेदार होता है.
टाइल रेंडरर से जुड़ी गड़बड़ियां
उदाहरण के लिए, सर्वर की गड़बड़ियां होने पर, CesiumJS रेंडरर आम तौर पर चुपचाप काम करना बंद कर देता है. इससे क्रैश, खाली स्क्रीन, और कुछ टाइलें लोड न होने जैसी समस्याएं हो सकती हैं.
सर्वर से जुड़ी गड़बड़ियों को ठीक करने के लिए इस्तेमाल की जाने वाली तकनीक, आपके इस्तेमाल किए गए रेंडरर पर निर्भर करेगी. ब्राउज़र पर आधारित रेंडरर, जैसे कि CesiumJS के लिए, ज़्यादातर ब्राउज़र में बनाए गए टूल की मदद से नेटवर्क ट्रैफ़िक की जांच की जा सकती है. उदाहरण के लिए, Chrome DevTools का इस्तेमाल किया जा सकता है.
आम तौर पर होने वाली गड़बड़ियां
यहां सबसे आम गड़बड़ियों के बारे में बताया गया है.
- 400: अमान्य तर्क
- एपीआई पासकोड, क्वेरी पैरामीटर, टाइल/टाइलों के सेट के आईडी अमान्य हैं या सेशन टोकन की समयसीमा खत्म हो गई है.
- 400: अमान्य वैल्यू
- पक्का करें कि
createSessionToken
अनुरोध में इस्तेमाल किया गया mapType, बाद के टाइल एंडपॉइंट में इस्तेमाल किए गए mapType
से मेल खाता हो. उदाहरण के लिए, streetview
सेशन टोकन का इस्तेमाल करके, roadmap
टाइल का अनुरोध नहीं किया जा सकता.
403: अनुमति नहीं दी गई
संभावित कारण:
एपीआई पासकोड मौजूद नहीं है, एसएसएल कनेक्शन मौजूद नहीं है या 3D टाइल के लिए, एपीआई पासकोड को अनुमति वाली सूची में नहीं जोड़ा गया है. अपने प्रोजेक्ट आईडी के साथ Google की सहायता टीम से संपर्क करें, ताकि आपको Map Tiles API की 3D टाइल की सुविधा के लिए अनुमति वाली सूची में शामिल किया जा सके.
मैसेज: Your request cannot be served. Please ensure the parameters and
request type are valid for your account and region.
फ़ोटो से मिलती-जुलती 3D टाइलें, उन प्रोजेक्ट में उपलब्ध नहीं हैं जो यूरोपियन इकनॉमिक एरिया (ईईए) के पते वाले बिलिंग खाते से लिंक हैं. ज़्यादा जानकारी के लिए, ईईए में रहने वाले खरीदारों के लिए Map Tiles API में किए गए बदलाव लेख पढ़ें.
- 429: कई बार अनुरोध किया गया
- आपका कोटा खत्म हो गया है. अपने डिवाइस का कोटा बढ़ाने के लिए, Google की सहायता टीम से संपर्क करें.
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-08-29 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-08-29 (UTC) को अपडेट किया गया."],[[["\u003cp\u003eRequests for 2D Tiles and Street View imagery may result in errors such as \u003ccode\u003erequired\u003c/code\u003e, \u003ccode\u003enotFound\u003c/code\u003e, \u003ccode\u003einvalid\u003c/code\u003e, \u003ccode\u003eforbidden\u003c/code\u003e, \u003ccode\u003eexpired\u003c/code\u003e, \u003ccode\u003ebadRequest\u003c/code\u003e, \u003ccode\u003equotaExceeded\u003c/code\u003e, or \u003ccode\u003erateLimitExceeded\u003c/code\u003e indicating issues with parameters, API keys, or quota limits.\u003c/p\u003e\n"],["\u003cp\u003eWhen retrying requests that failed due to \u003ccode\u003equotaExceeded\u003c/code\u003e or \u003ccode\u003erateLimitExceeded\u003c/code\u003e, it's crucial to implement exponential backoff to avoid overwhelming Google servers.\u003c/p\u003e\n"],["\u003cp\u003e3D Tiles errors are often handled by the renderer, requiring debugging techniques like inspecting network traffic using browser developer tools.\u003c/p\u003e\n"],["\u003cp\u003eCommon 3D Tiles errors include 400 (Invalid argument), 403 (Permission denied), and 429 (Too many requests), which can be addressed by verifying API keys, SSL connections, allowlisting, or adjusting quotas.\u003c/p\u003e\n"]]],["Upon encountering errors when using Map Tiles API, common issues include missing URL parameters (`required`), out-of-range coordinates (`notFound`, `invalid`), an invalid API key (`forbidden`), or an expired session token (`expired`). Other errors involve malformed requests (`badRequest`) or exceeding usage limits (`quotaExceeded`, `rateLimitExceeded`). When rate limiting occurs, implement exponential backoff when retrying requests. 3D Tiles errors may be handled by the renderer and include issues like invalid keys, missing API key, or exceeded quota.\n"],null,["# Handling errors\n\n**European Economic Area (EEA) developers** If your billing address is in the European Economic Area, effective on 8 July 2025, the [Google\n| Maps Platform EEA Terms of Service](https://cloud.google.com/terms/maps-platform/eea) will apply to your use of the Services. [Learn more](/maps/comms/eea/faq). In addition, certain content from the Map Tiles API will no longer be returned. [Learn more](/maps/comms/eea/map-tiles).\n\nAfter you make a request, you might receive a response that contains error\ndetails.\n\n2D Tiles and Street View imagery\n--------------------------------\n\nThe following list details the errors that you might encounter when using 2D\nTiles and Street View imagery.\n\n### Error listing\n\nThe following list details the errors you might encounter when using the\nMap Tiles API.\n\n`required`\n: Your request is missing a URL parameter. Note that the error message indicates\n which parameter is missing.\n\n`notFound`, `invalid`\n\n: Your \u003cvar class=\"apiparam\" translate=\"no\"\u003e\u003ccode translate=\"no\" dir=\"ltr\"\u003ex\u003c/code\u003e\u003c/var\u003e, \u003cvar class=\"apiparam\" translate=\"no\"\u003e\u003ccode translate=\"no\" dir=\"ltr\"\u003ey\u003c/code\u003e\u003c/var\u003e, or\n \u003cvar class=\"apiparam\" translate=\"no\"\u003e\u003ccode translate=\"no\" dir=\"ltr\"\u003ez\u003c/code\u003e\u003c/var\u003e values are out of range.\n\n - For regular map tiles, the maximum zoom level depends on the particular\n map tile, and on the map options that you requested.\n\n - For regular map tiles, the x coordinate must be in the range\n \\[0, (2\\^zoom)-1\\].\n\n - For regular map tiles, the y coordinate must be in the range\n \\[0, (2\\^(zoom-1))-1\\].\n\n - For Street View Tiles, zoom must be between zero and five, inclusive.\n\n - For Street View Tiles, the x and y coordinate ranges are the same as\n for regular map tiles, until level five zoom. At that point, the maximum\n values are `imageHeight` or `imagewidth` divided by `tileHeight` or\n `tileWidth`.\n\n`forbidden`:\n\nPossible causes:\n\n- The request is missing a valid API key.\n\n- Message: `Your request cannot be served. Please ensure the parameters and\n request type are valid for your account and region.`\n\n 2D satellite tiles are not available in projects that are linked to a\n billing account with a European Economic Area (EEA) address. For more\n information, see [Map Tiles API adjustments for EEA\n customers](/maps/comms/eea/map-tiles#adjustments).\n\n`expired`\n: Your `session` token has expired. A session token is valid for\n two weeks from its creation time. Note that this might change\n without notice. If you receive this error, then you must get a new session\n token, as described in\n [Use session tokens](/maps/documentation/tile/session_tokens).\n\n`badRequest`\n\n: Your request was malformed. Common reason for this include:\n\n - You specified a `terrain` map type without including a `roadmap` layer.\n\n - You included a `styles` array for a non-roadmap map type.\n\n - You sent a lat/lng value, as well as a panorama ID in a Street View metadata\n request.\n\n`quotaExceeded`, `rateLimitExceeded`\n\n: Your application has exceeded its allowed quota, or it exceeded it allowed\n number of queries per second.\n\n### Example error\n\n {\n \"error\": {\n \"code\": 403,\n \"message\": \"The request is missing a valid API key.\",\n \"errors\": [\n {\n \"message\": \"The request is missing a valid API key.\",\n \"domain\": \"global\",\n \"reason\": \"forbidden\"\n }\n ],\n \"status\": \"PERMISSION_DENIED\"\n }\n }\n\n### Retrying requests\n\nWhen requests fail with `quotaExceeded` and `rateLimitExceeded`, you should\nretry your request in such as way that broken requests or wide-scale failures\ndon't flood Goodle servers---as many clients attempt to retry requests in quick\nsuccession. This means using\n[exponential backoff](https://en.wikipedia.org/wiki/Exponential_backoff)\nwhen you retry your requests. Exponential backoff forces you to spread your\nrequests out in time, to give the server time to recover.\n\nFor example, if a request fails, then retry again after one second. But if that\nattempt fails as well, then retry your request again after two seconds. If that\nrequest also fails, then try again after four seconds. So you effectively spread\neach successive request out by simply doubling the length of time between them.\n\n3D Tiles\n--------\n\nErrors from Google's server might not be obvious to you because you access\nphotorealistic tiles through a renderer, which is responsible for handling\nserver errors.\n\n### Tile renderer errors\n\nFor example, the CesiumJS renderer usually fails silently when server errors\noccur, which can result in anything from crashes, blank screens, to specific\ntiles not loading.\n\nThe technique that you use to debug server errors will depend on the particular\nrenderer you use. For browser-based renderers like CesiumJS, you can inspect\nthe network traffic with tools built into most browsers. For example, you can\nuse\n[Chrome DevTools](https://developer.chrome.com/docs/devtools/).\n\n### Common errors\n\nThe following list contains details about the most common errors that you might\nencounter.\n\n400: Invalid argument\n: Invalid API keys, query parameters, tile/tileset IDs, or an expired session\n token.\n\n400: Invalid Value\n: Make sure that the mapType with which the `createSessionToken` request was\n made matches the `mapType` used in the subsequent tile endpoint. For example, a\n `streetview` session token cannot be used to request a `roadmap` tile.\n\n**403: Permission denied**\n\nPossible causes:\n\n- Missing API key, missing SSL connection, or your API key has not been added\n to the allowlist for 3D Tiles. Contact [Google\n Support](/maps/support#contact-maps-support) with your project ID to get\n added to the allowlist for the 3D Tiles functionality of the\n Map Tiles API.\n\n- Message: `Your request cannot be served. Please ensure the parameters and\n request type are valid for your account and region.`\n\n Photorealistic 3D tiles are not available in projects that are linked to a\n billing account with a European Economic Area (EEA) address. For more\n information, see [Map Tiles API adjustments for EEA\n customers](/maps/comms/eea/map-tiles#adjustments).\n\n429: Too many requests\n: Your quota is exhausted. Contact\n [Google Support](/maps/support#contact-maps-support) to increase your quota."]]