question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

gradle pactPublish fails

See original GitHub issue

I think the fix for #291 may have broken the successful publish case:

Publishing service-another-service.json ... HTTP/1.1 201 Created
:pactPublish FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':pactPublish'.
> No signature of method: org.apache.http.message.BasicStatusLine.startsWith() is applicable for argument types: (java.lang.String) values: [FAILED!]

PactBrokerClient returns resp.statusLine (a BasicStatusLine) whereas the failure case returns a string

  response.success = { resp -> resp.statusLine }
  response.failure = { resp, json ->
    def error = json?.errors?.join(', ') ?: 'Unknown error'
    "FAILED! ${resp.statusLine.statusCode} ${resp.statusLine.reasonPhrase} - ${error}"
  }

Occuring in 3.2.11

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
uglyogcommented, Aug 14, 2016

I’ve released version 3.2.13 with this fix

0reactions
uglyogcommented, Aug 23, 2016

It can take a while for the index to propagate. search.maven.org is listing it: http://search.maven.org/#search|gav|1|g%3A"au.com.dius" AND a%3A"pact-jvm-consumer-junit_2.11"

Read more comments on GitHub >

github_iconTop Results From Across the Web

gradle pactPublish fails · Issue #307 · pact-foundation/pact-jvm
HTTP/1.1 201 Created :pactPublish FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ...
Read more >
"Your project is misconfigured" error when publishing results ...
The pact verifies successfully without -Ppact.verify.publishResults=true on the command line. I am using Gradle 6.8.3 with Java 11 and ...
Read more >
Gradle plugin to verify a provider | Pact Docs
The pact gradle plugin provides a pactPublish task that can publish all pact files in a directory to a pact broker. To use...
Read more >
Could not get unknown property 'compileConfigurationName ...
I am getting the following error while updating Gradle. Caused by: groovy.lang.MissingPropertyException: Could not get unknown property ...
Read more >
Untitled
Add the pact-jvm-provider-gradle jar file to your build script class path: ... pact broker [version 2.2.7+] The pact gradle plugin provides a `pactPublish` ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found