Open nihadguluzade opened 5 months ago
Calling @abelsromero or @Albertoimpl
If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.
Thanks a lot for reporting @nihadguluzade, you are right, we just take the one descriptor. We should add support for more than one. I can't think of a workaround with the current implementation aside from having one descriptor file.
Boot version: 3.2.3 Cloud version: 2023.0.0 Gateway version: 4.1.0
I have 2 proto files. I generate the proto descriptor file using the
protobuf-maven-plugin
. Then, I set the name of the descriptor file in the application properties as described in documentation. When I send the JSON request to the gateway it throws thejava.util.NoSuchElementException: No Service found
exception. However, if I generate the descriptor file that describes only 1 proto file, no exception occurs.A workaround is to generate separate descriptor files for each proto file. Is there any way to make it work for a descriptor file that descripes multiple proto files?
Stack trace:
Digging into the source code of
JsonToGrpcGatewayFilterFactory
class I see that it takes the first descriptor from the file:This is the plugin I use to create the descriptor file:
My proto files if it matters:
My application properties:
Any help is appreciated.