{"id":186145,"date":"2021-06-13T17:47:04","date_gmt":"2021-06-14T00:47:04","guid":{"rendered":"https:\/\/m2msupport.net\/m2msupport\/?page_id=186145"},"modified":"2021-06-13T17:50:23","modified_gmt":"2021-06-14T00:50:23","slug":"invalid_argument-invalid-resource-name-given-google-cloud-api-error","status":"publish","type":"page","link":"https:\/\/m2msupport.net\/m2msupport\/invalid_argument-invalid-resource-name-given-google-cloud-api-error\/","title":{"rendered":"INVALID_ARGUMENT: Invalid resource name given &#8211; Google Cloud API Error"},"content":{"rendered":"<p>When invalid argument values are passed to the Google Cloud APIs, INVALID_ARGUMENT: Invalid resource name given error is returned.<\/p>\n<p><a href=\"https:\/\/m2msupport.net\/m2msupport\/download-iot-cloud-tester\/\">IoT Cloud Tester<\/a>&nbsp; application will return this if the any of the field values that are passed to Google Cloud API is incorrect.<\/p>\n<p>In the below example, the topic name value is not valid since it has space in the name of the topic.<\/p>\n<p><a href=\"https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/06\/invalid_arg.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-186147\" src=\"https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/06\/invalid_arg.png\" alt=\"\" width=\"1423\" height=\"797\" srcset=\"https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/06\/invalid_arg.png 1423w, https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/06\/invalid_arg-300x168.png 300w, https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/06\/invalid_arg-768x430.png 768w, https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/06\/invalid_arg-1024x574.png 1024w, https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/06\/invalid_arg-600x336.png 600w\" sizes=\"auto, (max-width: 1423px) 100vw, 1423px\" \/><\/a><\/p>\n<p>Following error message is returned by Google Cloud API.<\/p>\n<p>INVALID_ARGUMENT: Invalid resource name given (name=projects\/second-inquiry-315605\/topics\/topic invalid). Refer to https:\/\/cloud.google.com\/pubsub\/docs\/admin#resource_names for more information.<\/p>\n<h1>To fix this error, pass valid values to Google API arguments,<\/h1>\n<ul>\n<li>Check the values of the arguments passed to Google APIs.<\/li>\n<li>Refer to&nbsp;https:\/\/cloud.google.com\/pubsub\/docs\/admin#resource_names<\/li>\n<\/ul>\n<div class=\"video-responsive\"><iframe loading=\"lazy\" id=\"youTubePlayer\" src=\"https:\/\/www.youtube.com\/embed\/Gv92RuGwYjU?hd=1\" width=\"750\" height=\"421\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/div>\n","protected":false},"excerpt":{"rendered":"<p>When invalid argument values are passed to the Google Cloud APIs, INVALID_ARGUMENT: Invalid resource name given error is returned. IoT Cloud Tester&nbsp; application will return this if the any of the field values that are passed to Google Cloud API &hellip; <a href=\"https:\/\/m2msupport.net\/m2msupport\/invalid_argument-invalid-resource-name-given-google-cloud-api-error\/\">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-186145","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/pages\/186145","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=186145"}],"version-history":[{"count":2,"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/pages\/186145\/revisions"}],"predecessor-version":[{"id":186150,"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/pages\/186145\/revisions\/186150"}],"wp:attachment":[{"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/media?parent=186145"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}