If I get this error, where do I have to look for t...
# protobufs
r
If I get this error, where do I have to look for that control character?
Copy code
2022-12-07T21:11:27.659360Z ERROR ThreadId(01) pact_ffi::plugins: Contents is not a valid JSON - control character (\u0000-\u001F) found while parsing a string at line 7 column 0
2022-12-07T21:11:27.659383Z ERROR ThreadId(01) pact_ffi::plugins: contents='{
                "pact:proto": "/Users/ringods/Projects/pulumi/pulumi-pact-poc/proto/pulumi/resource.proto",
                "pact:proto-service": "ResourceMonitor/RegisterResource",
                "pact:content-type": "application/protobuf",
                "request": {
                        "type": "matching(string),
                        "name": "matching(string),
                        "parent": "matching(string),
                        "custom": "matching(boolean),
                },
                "response": {
                        "urn": "matching(string)",
                }
        }'
Ouch… after posting I see I didn’t close the double quotes on the request matchers.
m
Yes, I need to improve the validation on this Ringo, thanks for reminding me
Oh, Ron did actually create the issue for me: https://github.com/pact-foundation/pact-go/issues/250.