`<http://au.com|au.com>.dius.pact.core.pactbroker....
# pact-broker
m
<http://au.com|au.com>.dius.pact.core.pactbroker.InvalidNavigationRequest: Failed to fetch the root HAL document
m
What URL after your given to the verifier?
Set to debug level logs and see what requests it makes. One possible explanation is proxies/network firewalls getting in the way
Looks like an SSL exception too. Have you got a custom certificate installed and have you checked the certificate is properly installed in the trust store?
m
yes it is i think a problem with SSL
yes i have.a custom certificate on the JVM
installed
and i am executing it on intellijJ
the url of the broker is on k8s https://pct-borker
Hello
m
Sorry, I had to head to bed 🙂
The issue could be in multiple places
Does it work on your personal or work machine? Sometimes corporate machines have other network firewalls or proxies that interfere with the certificate chain Can you curl it e.g.
curl <https://pct-borker>
or do you need to add the
-k
flag? That indicates the setup is incorrect
Where is the broker running - locally on your laptop or on another environment?
m
hello i think our time zone is not the same but thank you so much for your answers
👍 1
so the broker is on a another environment
i have to acess it via VPN
it is on a pod on kubernetes cloud
m
I’d talk to the people running your Kube cluster
they will know what should be setup on your client environment to properly access. The addition of the VPN won’t help the situation, because it will no doubt involve corporate firewalling and intermediate certs
m
the certificate in the JVM already configured Java/JavaVirtualMachines/adopt-openjdk-11.0.9.1/Contents/Home/lib/security/cacerts
i launched clean install on my command line without using intelliJ
and have the same error with timeout
m
Can you curl your broker from the command line?
Or better yet, write a java script that calls the API and take pact out of the equation altogether
m
i curl it
without -k it needs certificate
👍 1
when i use -k it works fine
m
Can you please try writing a java client?
m
ok i will test with java client
👍 1
without pact
with java spring webClient i have ssl handshake timeout
i would say, pact is on tests so i can disable SSL handshake when the test pact is calling the broker
how can i do it ?
when executing pact is there a way to disable SSL handshake
on broker
m
with java spring webClient i have ssl handshake timeout
So there must be a reason your team has setup SSL on the broker - presumably they care about security. Disabling SSL doesn’t seem the right thing to do
It looks like there are some options to disable SSL
search docs.pact.io to see if any work for you
m
"For providers that are running on SSL with self-signed certificates" it is not talking about the broker
am i wrong ?
it is talking about provider under SSL
Copy code
<plugin>
    <groupId>au.com.dius.pact.provider</groupId>
    <artifactId>maven</artifactId>
    <version>${pact.version}</version>
    <configuration>
        <pactBrokerUrl><https://pact-feat.noprd.com></pactBrokerUrl>
        <trimSnapshot>true</trimSnapshot>
        <serviceProviders>
            <serviceProvider>
                <name>provider1</name>
                <pactBrokerUrl><https://pact-feat.noprd.com></pactBrokerUrl>
                <insecure>true</insecure>
            </serviceProvider>
        </serviceProviders>
    </configuration>
</plugin>
i put this on pom.xml
in project provider
but not sure that it will enable insecure SSL when calling the broker
m
Yep you might be right. I don't know the answer but was trying to see for you
m
i didn't find in the docs how to enable insecure SSL or how to add certificate before verifying pacts on a self signed broker
https