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

Cloudflare Blocking access: "User-Agent" needs to be added to the header #55

Closed
alistairrutherford opened this issue Oct 12, 2018 · 2 comments
Labels

Comments

@alistairrutherford
Copy link

Unable to reach the sandbox API I noted that the exception was stating Cloudflare was blocking me due to unknown user-agent. The solution to this is to add a User-Agent string to the header.

headers.add("User-Agent", "MyAgent");

Most of the unit tests are working again with this change.

@irufus
Copy link
Owner

irufus commented Nov 5, 2018

Did you create a PR for it?

@irufus irufus added the bug label Dec 13, 2018
onyxcoyote pushed a commit to onyxcoyote/gdax-java that referenced this issue Dec 16, 2018
@onyxcoyote
Copy link
Contributor

submitted pull request with fix

robevansuk pushed a commit that referenced this issue Mar 30, 2019
…tFill API change (#57)

* fix issue #55 missing User-Agent header in API calls

* fix issue #58 (getFill API change)

* clean up fillById test and rename test method
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants