Failed to call google cloud resource manager V3 java client

I am getting the following error on any attempt to call any method from

Caused by: io.grpc.StatusRuntimeException: UNIMPLEMENTED: HTTP status code 404
invalid content-type: text/html; charset=UTF-8
Caused by: io.grpc.StatusRuntimeException: UNIMPLEMENTED: HTTP status code 404

headers: Metadata(:status=404,date=Tue, 22 Jun 2021 15:29:57 GMT,content-type=text/html; charset=UTF-8,server=ESF,content-length=1614,x-xss-protection=0,x-frame-options=SAMEORIGIN,x-content-type-options=nosniff,server-timing=gfet4t7; dur=745,alt-svc=h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-T051=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43")
<!DOCTYPE html>
<html lang=en>
  <meta charset=utf-8>
  <meta name=viewport content="initial-scale=1, minimum-scale=1, width=device-width">
  <title>Error 404 (Not Found)!!1</title>
    *{margin:0;padding:0}html,code{font:15px/22px arial,sans-serif}html{background:#fff;color:#222;padding:15px}body{margin:7% auto 0;max-width:390px;min-height:180px;padding:30px 0 15px}* > body{background:url(// 100% 5px no-repeat;padding-right:205px}p{margin:11px 0 22px;overflow:hidden}ins{color:#777;text-decoration:none}a img{border:0}@media screen and (max-width:772px){body{background:none;margin-top:0;max-width:none;padding-right:0}}#logo{background:url(// no-repeat;margin-left:-5px}@media only screen and (min-resolution:192dpi){#logo{background:url(// no-repeat 0% 0%/100% 100%;-moz-border-image:url(// 0}}@media only screen and (-webkit-min-device-pixel-ratio:2){#logo{background:url(// no-repeat;-webkit-background-size:100% 100%}}#logo{display:inline-block;height:54px;width:150px}
  <a href=//><span id=logo aria-label=Google></span></a>
  <p><b>404.</b> <ins>That??s an error.</ins>
  <p>The requested URL <code>/</code> was not found on this server.  <ins>That??s all we know.</ins>

    at io.grpc.Status.asRuntimeException( ~[grpc-api-1.38.0.jar:1.38.0]
    ... 16 common frames omitted

This example is got by the following code:

        ProjectsClient projectsClient = null;
        try {
            projectsClient = ProjectsClient.create();

        } catch (IOException e) {
        } iamPolicy = projectsClient.getIamPolicy("pocplatform59");

but any call to V3 java client causes the same. If I try to send the same request using "try this API" feature on, it works. I use the latest version, but an erlier has the same effect.

1 answer

  • answered 2021-06-23 10:36 Pit

    As seen in the 404 Error documentation of Google Cloud Resource Manager, it's caused by:

    • The requested operation failed because a resource associated with the request could not be found.
    • A resource associated with the request could not be found. If you have not used this API in the last two weeks, please re-deploy the App Engine app and try calling it again.

How many English words
do you know?
Test your English vocabulary size, and measure
how many words do you know
Online Test
Powered by Examplum