Closed edmundnoble closed 1 year ago
The http
networks seem to be callable now with this change. However I'm receiving the following error:
{"localhost:8080":[{"error":"Error in $: Failed reading: not a valid json value at '<html>'"}]}
This seems to be because we consider an HTTP-only server to be a "Pact server", which doesn't have the same API route root. Maybe this is a heuristic which used to apply universally? Perhaps we should specify this explicitly then on the CLI.
This seems to be because we consider an HTTP-only server to be a "Pact server", which doesn't have the same API route root. Maybe this is a heuristic which used to apply universally? Perhaps we should specify this explicitly then on the CLI.
Agreed. I don't think this heuristic is correct in all circumstances. Will merge this PR though and implement a more general solution in a follow-on.
Looks like the logic for selecting HTTP vs HTTPS for a node relies on being sent an error status code when querying HTTPS, but usually you'll just get a timeout. So I just caught any (synchronous) exceptions and considered them failures.