vivid973
09/25/2025, 9:22 PM.proto file generates the usual *_pb2.py and *_pb2_grpc.py files, and I’m calling the service using the generated stub:
stub = ExampleServices_pb2_grpc.AreaCalculationServiceStub(channel)
response = stub.calculateArea(example_pb2.CalculateAreaRequest(base=5, height=10))
I always get below error and it looks like WireMock doesn’t find a matching stub.
status = StatusCode.UNIMPLEMENTED
details = "No matching stub mapping found for gRPC request"
I also observed:
1. Calling the same service through an HTTP POST mapping works as expected.
2. I generated a .dsc file from my .proto and provided it to WireMock, but it doesn’t seem to make any effect. POST method will work with or without .dsc file mounted.
👉 Question: Does the WireMock gRPC extension support requests made through the generated Python gRPC stubs (*_pb2_grpc), or is it only intended for raw/unary JSON request/response mappings? If it should work, could someone share an example for Python stub?Lee Turner
10/02/2025, 3:19 PMbase of 5 and a height of 10. However, if you look at the stub being used in the example, it is only matching on specific numbers - https://github.com/leeturner/wiremock-standalone-grpc-example/blob/main/wiremock/mappings/mappings.json#L7
You could try setting the values you are passing to the same as in the stub matcher or remove the bodyPatterns part of the stub json and try with any valuesvivid973
10/14/2025, 8:59 PMvivid973
10/14/2025, 9:50 PMLee Turner
10/15/2025, 8:55 AM