You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
orenhan opened this issue
Jun 4, 2024
· 5 comments
Labels
bugIndicates an unexpected problem or unintended behaviortriageThis issue is yet to be triaged by a maintainerupstreamIndicates that an issue relates to an upstream problem (such as in pact-reference)
I have triple checked, that there are no unhandled promises in my code and have read the section on intermittent test failures
I have set my log level to debug and attached a log file showing the complete request/response cycle
For bonus points and virtual high fives, I have created a reproduceable git repository (see below) to illustrate the problem
I work on a private network and cannot attach logs or code examples
Expected behaviour
setting disableSslVerifications: true will fix BadSignature error when broker is on https
Actual behaviour
setting disableSslVerifications: true didn't have an effect
Steps to reproduce
deploy pact broker with https endpoint
publish contract from consumer
try to verify pacts from provider running locally
Hi :)
I'm using PactJs version 12.3.0, and have a pact broker deployed on openshift.
on the consumer part - everything works well. contract are published correctly through the cicd pipeline.
on the provider part - I created a unit test with jest for verifying contracts using Verifier. I keep getting an error: Failed to load pact - No pacts found under provider 'provider' matching the given consumer version selectors in pact broker 'https://pact.broker': IO Error - Failed to access pact broker path '/' - error sending request for url (https://pact.broker/): error trying to connect: invalid peer certificate: BadSignature. URL: 'https://pact.broker'
certificate is indeed invalid, but I just want to disable ssl verification. In the consumer cicd I used PACT_DISABLE_SSL_VERIFICATION and it worked, but with the Verifier it looks like disableSslVerification has no impact.
I will mention again - I work on a private network and cannot attach log or code files, I can copy specific things. sorry for that :(
Thanks!
The text was updated successfully, but these errors were encountered:
orenhan
added
bug
Indicates an unexpected problem or unintended behavior
triage
This issue is yet to be triaged by a maintainer
labels
Jun 4, 2024
Are you getting the same error or a different one? If the certificate is valid, it shouldn't be erroring obviously. Can you share the certificate here for review?
I cant share my certificate because I work on a private network and exporting files from it is a long process, anything specific about the certificate that can help?
bugIndicates an unexpected problem or unintended behaviortriageThis issue is yet to be triaged by a maintainerupstreamIndicates that an issue relates to an upstream problem (such as in pact-reference)
Software versions
20.10.0
Issue Checklist
Please confirm the following:
I work on a private network and cannot attach logs or code examples
Expected behaviour
setting disableSslVerifications: true will fix BadSignature error when broker is on https
Actual behaviour
setting disableSslVerifications: true didn't have an effect
Steps to reproduce
deploy pact broker with https endpoint
publish contract from consumer
try to verify pacts from provider running locally
Hi :)
I'm using PactJs version 12.3.0, and have a pact broker deployed on openshift.
on the consumer part - everything works well. contract are published correctly through the cicd pipeline.
on the provider part - I created a unit test with jest for verifying contracts using Verifier. I keep getting an error:
Failed to load pact - No pacts found under provider 'provider' matching the given consumer version selectors in pact broker 'https://pact.broker': IO Error - Failed to access pact broker path '/' - error sending request for url (https://pact.broker/): error trying to connect: invalid peer certificate: BadSignature. URL: 'https://pact.broker'
certificate is indeed invalid, but I just want to disable ssl verification. In the consumer cicd I used PACT_DISABLE_SSL_VERIFICATION and it worked, but with the Verifier it looks like disableSslVerification has no impact.
I will mention again - I work on a private network and cannot attach log or code files, I can copy specific things. sorry for that :(
Thanks!
The text was updated successfully, but these errors were encountered: