Skip to content

HttpJson Mixins RPCs (Locations & IAM) Not Supported #1299

@lqiu96

Description

@lqiu96

In the genrest.go code to generate the handlers:

func RegisterHandlers(router *gmux.Router, backend *services.Backend) {

there is no code to generate the mixins RPCs handlers. When calling this via Java, we are seeing a 400 Bad Request:

Client Recieves:

Caused by: com.google.api.client.http.HttpResponseException: 400 Bad Request
GET http://localhost:7469/v1beta1/projects/showcase/locations/us-central1
{"error":{"code":400,"message":"unrecognized request: GET \"/v1beta1/projects/showcase/locations/us-central1\"","details":null,"Body":"","Header":null,"Errors":null}}
	at com.google.api.client.http.HttpResponseException$Builder.build(HttpResponseException.java:293)
	at com.google.api.client.http.HttpRequest.execute(HttpRequest.java:1118)
	at com.google.api.gax.httpjson.HttpRequestRunnable.run(HttpRequestRunnable.java:118)

Server sends:

unrecognized request: GET "/v1beta1/projects/showcase/locations/us-central1"

Possible Fix:

Metadata

Metadata

Assignees

Labels

priority: p2Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions