-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No logs written in ~/.pact/plugins/protobuf-X/logs #50
Comments
👋 that usually indicates the plugin couldn't start, you can try invoking the binary manually from the plugin directory. I am going to assume its because protoc isn't installed on the machine in question |
Hi there, thanks for the fast response. protoc is installed: as I said the kotlin library works and the linked example using the js library works. However when we use an apparently bad protobuf, it doesn't work and no logs are produced to indicate why. |
I am getting the same behavior that @jadencodes describes. also running the tests in the example repo dont produce any logs. i have also noticed that in my runs the port number is impossibly high: |
looking through the logs i can see: now im getting the following errors which are very hard to follow as it doesnt say which field its refering to: EDIT: The log above about string field values is only printed when the provider logs are set in debug mode |
Hi there, we are evaluating using this across a microservice environment that relies on GRPC communcations.
We were able to quickly get up a demo in our kotlin services but are struggling with the typescript/js repositories. While a learning curve is expected, we get no logs in the protobuf plugin directory from the js libraries which we got and relied on from the java library. This makes triaging what the problem is (i suspect building or importing our protobuf) pretty much trial and error.
I also cloned the example from: https://github.com/pact-foundation/pact-plugins/blob/main/examples/gRPC/area_calculator/js/test/grpc.consumer.spec.ts and still see no logs. The log files themselves are created, but never written to.
I have increased the log level to debug and trace to see if that helps but it doesn't seem to have an effect.
The error we saw in kotlin console that was triagable from the protobuf plugin logs is the same as the error we see in js:
We are on npm 8, nodejs 16
The text was updated successfully, but these errors were encountered: