Closed rmzoni closed 3 years ago
If you're using a git command to get your branch name, you'll need to do a .strip
on it to remove the new line character on the end. eg.
`git name-rev --name-only HEAD`.strip
If you're using a git command to get your branch name, you'll need to do a
.strip
on it to remove the new line character on the end. eg.`git name-rev --name-only HEAD`.strip
Hi, I made this and for test purpose i fixed the tag. But, the problem persists.
You're hitting this middleware so there must be a new line in there somewhere.
Try setting verbose true
in the honours_pacts_from_pact_broker
configuration. It will show you the HTTP output.
You're hitting this middleware so there must be a new line in there somewhere.
Try setting
verbose true
in thehonours_pacts_from_pact_broker
configuration. It will show you the HTTP output.
Thanks for the response. But verbose configuration only log requests for the verification process.
The publish requests were not been logging. The error remains the same.
Look at the log.
INFO: Tagging version c6c2de20e5e1f1b9d51259db1964fd20d786f6da
of scp as "master"
There's a new line after the version number. It's showing in the log itself.
It really was the /n
but in the provider version like you mentioned before. @bethesque thanks to be so helpful.
I think it would be nice to update the pact documentation to use strip: https://docs.pact.io/implementation_guides/ruby/verifying_pacts#publishing-verification-results-to-a-pact-broker
provider_version = (ENV['GIT_COMMIT'] || `git rev-parse --verify HEAD`).strip
provider_branch = (ENV['GIT_BRANCH'] || `git name-rev --name-only HEAD`).strip
Context
When I use the
app_version_tags
in provider verification results, I'm receiving an error that contains a new line character in the response json.Config
Error