Skip to content

No logs written in ~/.pact/plugins/protobuf-X/logs #50

@jadencodes

Description

@jadencodes

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:

Failed to process protobuf: Failed to invoke protoc binary: exit code exit status: 1

We are on npm 8, nodejs 16

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions