appengine endpoint Failed to retrieve API configs with status: 500

后端 未结 4 988
借酒劲吻你
借酒劲吻你 2020-12-11 16:25

I run appengine local dev server in eclipse with params 0.0.0.0

When I try to access any of the methods I get the following error. I get the same error if I try to a

4条回答
  •  情深已故
    2020-12-11 17:24

    You must make your development server accessible to the network by setting it to listen to external connections. You can do this by editing the build.gradle for the backend project and setting the httpAddress.

    appengine {
      ....
      httpAddress = "0.0.0.0"
      ....
    }
    

    You must also change the endpoint root url to point to your computer's ip address when creating the endpoint .

    Registration.Builder builder = new Registration.Builder(AndroidHttp.newCompatibleTransport(),
            new AndroidJsonFactory(), null)
            .setRootUrl("http://:8080/_ah/api/")
            ....
    

    best reference is here

提交回复
热议问题