Failed to fetch the root HAL document I tried to s...
# pact-broker
s
Failed to fetch the root HAL document I tried to setup proxy like this while running the tests but still getting below error $ ./gradlew test -Dhttp.proxyHost=ourhost.se -Dhttp.proxyPort=8080 -DnonProxyHosts=localhost,127.0.0.1,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16 Error: PactProviderTest > verificationTest(PactVerificationContext) > initializationError FAILED au.com.dius.pact.core.pactbroker.InvalidNavigationRequest at HalClient.kt:253 Caused by: org.apache.hc.client5.http.HttpHostConnectException at Net.java:-2
m
Are you sure that’s the problem though? Can you please share debug level logs so we can see the outbound request/responses?
s
@Matt (pactflow.io / pact-js / pact-go) here is the logs Caused by: org.apache.hc.client5.http.HttpHostConnectException: Connect to https://swedbankab.pactflow.io:443 [swedbankab.pactflow.io/3.26.132.129, swedbankab.pactflow.io/52.63.4.90] failed: Connection timed out: no further information at java.base@17.0.5/sun.nio.ch.Net.pollConnect(Native Method) at java.base@17.0.5/sun.nio.ch.Net.pollConnectNow(Net.java:672) at java.base@17.0.5/sun.nio.ch.NioSocketImpl.timedFinishConnect(NioSocketImpl.java:549) at java.base@17.0.5/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:597) at java.base@17.0.5/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:327) at java.base@17.0.5/java.net.Socket.connect(Socket.java:633)
m
that looks like a network issue - if you try on a non-work laptop, does it work?
You should talk to somebody in your networking/IT department
It looks more like a firewall issue, than proxy, but it’s hard to say
telnet <http://swedbankab.pactflow.io|swedbankab.pactflow.io> 443
on your work machine vs non work machine should highlight the problem
s
This is my work computer ..Y:\>telnet swedbankab.pactflow.io 443 Connecting To swedbankab.pactflow.io...Could not open connection to the host, on port 443: Connect failed.
m
Thanks. Please, you don’t need to also send it to the channel.
This looks like a firewall issue on your side, you will need to find somebody internally that can allow you access to the application