-
Notifications
You must be signed in to change notification settings - Fork 50
Closed
googleapis/sdk-platform-java
#1656Labels
priority: p2Moderately-important priority. Fix may not be included in next release.Moderately-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.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Description
In the genrest.go code to generate the handlers:
gapic-showcase/server/genrest/genrest.go
Line 33 in aba8edb
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:
- Manually add the Mixin RPCs for one client (i.e. Echo) here:
gapic-showcase/util/genrest/goviewcreator.go
Line 292 in aba8edb
for _, handler := range registered {
Metadata
Metadata
Assignees
Labels
priority: p2Moderately-important priority. Fix may not be included in next release.Moderately-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.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.