{"id":187755,"date":"2021-06-20T16:29:16","date_gmt":"2021-06-20T23:29:16","guid":{"rendered":"https:\/\/m2msupport.net\/m2msupport\/?page_id=187755"},"modified":"2021-06-20T16:31:45","modified_gmt":"2021-06-20T23:31:45","slug":"the-cloud-region-isnt-supported-valid-regions-asia-east1europe-west1us-central1","status":"publish","type":"page","link":"https:\/\/m2msupport.net\/m2msupport\/the-cloud-region-isnt-supported-valid-regions-asia-east1europe-west1us-central1\/","title":{"rendered":"The cloud region isn&#8217;t supported. Valid regions: {asia-east1,europe-west1,us-central1}"},"content":{"rendered":"<p>When creating a the device registry, only certain regions are allowed. If invalid region is used, Google Cloud API returns an error.<\/p>\n<p><a href=\"https:\/\/m2msupport.net\/m2msupport\/download-iot-cloud-tester\/\">IoT Cloud Tester<\/a>\u00a0 application will return this error if the unsupported region is selected when creating the device registry.<\/p>\n<p>In the below example, &#8216;asia-northeast3&#8217; region is used to create\u00a0 the device registry causing this error.<\/p>\n<p><a href=\"https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/06\/invalid_region.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-187757\" src=\"https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/06\/invalid_region.png\" alt=\"\" width=\"1223\" height=\"755\" srcset=\"https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/06\/invalid_region.png 1223w, https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/06\/invalid_region-300x185.png 300w, https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/06\/invalid_region-768x474.png 768w, https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/06\/invalid_region-1024x632.png 1024w, https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/06\/invalid_region-600x370.png 600w\" sizes=\"auto, (max-width: 1223px) 100vw, 1223px\" \/><\/a><\/p>\n<p>Following error message is returned by Google Cloud API.<\/p>\n<p>GET https:\/\/cloudiot.googleapis.com\/v1\/projects\/second-inquiry-315605\/locations\/asia-northeast3\/registries<\/p>\n<p>{<\/p>\n<p>&#8220;code&#8221; : 404,<\/p>\n<p>&#8220;errors&#8221; : [ {<\/p>\n<p>&#8220;domain&#8221; : &#8220;global&#8221;,<\/p>\n<p>&#8220;message&#8221; : &#8220;The cloud region &#8216;projects\/second-inquiry-315605\/locations\/asia-northeast3&#8217; (location &#8216;asia-northeast3&#8217;) isn&#8217;t supported. Valid regions: {asia-east1,europe-west1,us-central1}&#8221;,<\/p>\n<p>&#8220;reason&#8221; : &#8220;notFound&#8221;<\/p>\n<p>} ],<\/p>\n<p>&#8220;message&#8221; : &#8220;The cloud region &#8216;projects\/second-inquiry-315605\/locations\/asia-northeast3&#8217; (location &#8216;asia-northeast3&#8217;) isn&#8217;t supported. Valid regions: {asia-east1,europe-west1,us-central1}&#8221;,<\/p>\n<p>&#8220;status&#8221; : &#8220;NOT_FOUND&#8221;<\/p>\n<p>}<\/p>\n<h1>To fix this error, pass valid region to Google API arguments,<\/h1>\n<ul>\n<li>Pass supported regions when creating the device registry.<\/li>\n<\/ul>\n<div class=\"video-responsive\"><iframe loading=\"lazy\" id=\"youTubePlayer\" src=\"https:\/\/www.youtube.com\/embed\/IWC1HFkfAtQ?hd=1\" width=\"750\" height=\"421\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/div>\n","protected":false},"excerpt":{"rendered":"<p>When creating a the device registry, only certain regions are allowed. If invalid region is used, Google Cloud API returns an error. IoT Cloud Tester\u00a0 application will return this error if the unsupported region is selected when creating the device &hellip; <a href=\"https:\/\/m2msupport.net\/m2msupport\/the-cloud-region-isnt-supported-valid-regions-asia-east1europe-west1us-central1\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"iot_tutorial_template.php","meta":{"footnotes":""},"class_list":["post-187755","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/pages\/187755","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/comments?post=187755"}],"version-history":[{"count":3,"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/pages\/187755\/revisions"}],"predecessor-version":[{"id":187763,"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/pages\/187755\/revisions\/187763"}],"wp:attachment":[{"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/media?parent=187755"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}