roadrunner icon indicating copy to clipboard operation
roadrunner copied to clipboard

[🐛 BUG]: GRPC Reflection server on 2.11.0-beta.1

Open rustatian opened this issue 3 years ago • 3 comments

Discussed in https://github.com/roadrunner-server/roadrunner/discussions/1223

Originally posted by genhoi July 23, 2022 I tried the new RoadRunner beta (2.11.0-beta.1) for GRPC Reflection for Postman and GrpcUI, for some reason it didn't work for me, is there any way to tell me what I'm doing wrong?

I added a flag to the settings to enable.

image

RR log output: [INFO] RoadRunner server started; version: 2.11.0-beta.1, buildtime: 2022-07-18T14:43:58+0000

Postman output: image

grpcui output:

docker compose logs grpcui
grpcui-1  | Failed to compute set of methods to expose: Symbol not found: utp.catalog_write.v1.CatalogWriteService

Although the methods themselves work, if you call the GRPC methods at this address

rustatian avatar Jul 24 '22 16:07 rustatian

@genhoi 👋🏻 I guess I found the issue. We missed in our docs that you should use a --php_out=<OUTPUT DIRECTORY> protoc option. W/o this option, the protoreflect server can't find the proto_description of the service. I recompiled my test proto files and was able to see the full description of the gRPC methods: image image

rustatian avatar Jul 24 '22 19:07 rustatian

Ah, that won't help you. I found a real issue, the fix will be in the beta.2.

rustatian avatar Jul 24 '22 21:07 rustatian

Reopening. Include files from the imports.

rustatian avatar Aug 06 '22 15:08 rustatian

ref: https://github.com/roadrunner-server/roadrunner/issues/1208

rustatian avatar Aug 15 '22 22:08 rustatian