Replies: 3 comments 1 reply
-
What's |
Beta Was this translation helpful? Give feedback.
-
Link for com.google.storage.v2 - https://cloud.google.com/java/docs/reference/google-cloud-storage/latest/com.google.storage.v2 When I spin the fakeServer container in 9023 port and use com.google.storage.v2.StorageGrpc to invoke any method like listBuckets(), it just gives me a http2 exception in the docker logs, just a one liner. However, when I use the com.google.cloud.storage.Storage and call listBuckets(), I am able to run. I launched the docker container via command line at port 9023 and created the following:
and then using the stub to run the listBuckets() for my Unit Test. |
Beta Was this translation helpful? Give feedback.
-
The actual error message in OnError() in responseObserver and the logs from the docker logs listed below. I realized that client was making a HTTP2 call and the sever can only accommodate HTTP 1.x call. error listing Bucket io.grpc.StatusRuntimeException: INTERNAL: http2 exception % docker run --name fake-gcs-server -p 4443:4443 -v $HOME/data:/data dockerproxy.aexp.com/fsouza/fake-gcs-server -scheme http |
Beta Was this translation helpful? Give feedback.
-
The fake-gcs-server works for HTTP 1.x, I would like to see whether it is possible to get this working for com.google.storage.v2. When I try to use com.google.storage.v2, I get http2 exception. Any ideas how or directions on this will be a great help
Beta Was this translation helpful? Give feedback.
All reactions