Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue downloading pact files from broker #29

Open
SnewsButton opened this issue Jul 10, 2018 · 0 comments
Open

Issue downloading pact files from broker #29

SnewsButton opened this issue Jul 10, 2018 · 0 comments

Comments

@SnewsButton
Copy link

Peeking into the code a bit, I see that CloseableHttpResponse response = createClient().execute(request); yields the following 406 error:

HttpResponseProxy{HTTP/1.1 406 Not Acceptable [Content-Length: 0, Connection: keep-alive, Status: 406 Not Acceptable, Date: Tue, 10 Jul 2018 20:05:59 GMT, X-Content-Type-Options: nosniff, Server: Webmachine-Ruby/1.5.0 Rack/1.3, X-Pact-Broker-Version: 2.24.0, X-Powered-By: Phusion Passenger 5.1.11] [Content-Length: 0,Chunked: false]}

However it seems that this code snippet works as intended:

CloseableHttpClient httpclient = HttpClients.createDefault();
HttpGet httpGet = new HttpGet(path);
CloseableHttpResponse response = httpclient.execute(httpGet);

I am not sure what the difference between the two function calls is. Any help would be appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant