:wave: Hi all, I'm having trouble with getting the...
# protobufs
c
👋 Hi all, I'm having trouble with getting the grpc plugin to work. I'm on version 0.3.9 and I'm running into this error when running a pact test for a JS consumer.
Copy code
2024-01-30T05:05:04.269707Z ERROR ThreadId(01) pact_ffi::plugins: Failed to call out to plugin - Request to configure interaction failed: Failed to process protobuf: Failed to invoke protoc binary: exit code exit status: 1
2024-01-30T05:05:04.270658Z ERROR ThreadId(01) pact_ffi::mock_server: Failed to start mock server - Mock server failed to start: Failed to start gRPC mock server: Pact file does not contain any Protobuf descriptors
I'm assuming the failure to start the mock server is because of the failed protoc invocation. Has anyone run into this? I added debug logging, but nothing really struck at me. Thanks so much!
r
Check what is in
HOME/.pact/plugins/protobuf-0.3.9
m
☝️
r
It will try download the protoc binary, and that may have failed
c
Thanks! I was able to get it to work by updating the config
"protocVersion"
to recent version. I think because I have a newer Mac and it wasn't able to find the arch for the older protobuf version.
Well, still running into the same protoc error, but now I know the protoc binary is being run 😄