Skip to content

403 when try to use grpc com.google.endpoints.examples.hello.HelloWorldClient #873

Closed
@zhihuawensc

Description

In which file did you encounter the issue?

com.google.endpoints.examples.hello.HelloWorldClient

https://github.com/GoogleCloudPlatform/java-docs-samples/blob/master/endpoints/getting-started-grpc/client/src/main/java/com/google/endpoints/examples/hello/HelloWorldClient.java

Did you change the file? If so, how?

NO.

Describe the issue

I followed all the steps in https://github.com/GoogleCloudPlatform/java-docs-samples/tree/master/endpoints/getting-started-grpc, it can run locally. I started the docker, enabled the HTTP traffic on the gce instance, created the api key on my project. But I still got 403 error as below. Please advise me how to debug this issue.

C02S715FFVH6:getting-started-grpc zhihua.wen$ java -jar client/build/libs/client.jar --host external_ip:80 --api_key <api_key>
Sep 27, 2017 3:27:18 PM io.grpc.internal.ManagedChannelImpl

INFO: [ManagedChannelImpl@4cdbe50f] Created with target external_ip:80

Sep 27, 2017 3:27:18 PM com.google.endpoints.examples.hello.HelloWorldClient greet
INFO: Will try to greet world ...
Sep 27, 2017 3:27:18 PM com.google.endpoints.examples.hello.HelloWorldClient$Interceptor interceptCall
INFO: Intercepted helloworld.Greeter/SayHello
Sep 27, 2017 3:27:18 PM com.google.endpoints.examples.hello.HelloWorldClient$Interceptor$1 start
INFO: Attaching API Key: <api_key>

Sep 27, 2017 3:27:19 PM com.google.endpoints.examples.hello.HelloWorldClient greet

WARNING: RPC failed: Status{code=UNAVAILABLE, description=Service control request failed with HTTP response code 403, cause=null}

Sep 27, 2017 3:27:19 PM io.grpc.internal.ManagedChannelImpl maybeTerminateChannel

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions