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 user-agent #44

Open
WelschChristopher opened this issue May 12, 2021 · 4 comments
Open

Cloudflare blocking user-agent #44

WelschChristopher opened this issue May 12, 2021 · 4 comments

Comments

@WelschChristopher
Copy link

while calling getAccountData the response is "error 1020". You can avoid this by changing the user-agent to
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36"
In RequestUtils.prepareRequest(..). This worked for me. The error itselfs seems to be thrown by cloudflare.

Greetings

@pedroestima-sgg
Copy link

It didn't help on my end. During the last 3 days I managed to make it work 3 or 4 times just be keep trying without any changes, looks like sometimes it connects to a server that doesn't throw that error

@WelschChristopher
Copy link
Author

I work together with a friend with this api. He had the same problem at first. After updating his Chrome browser it worked for him to!
I use Version 90.0.4430.212 (Offizieller Build) (64-Bit)
We also use some updated version of the chromedriver. Chromedriver V87x does not work with chrome 90.x

@pedroestima-sgg
Copy link

I don't think it is related to the browser since it's just doing a request using a HttpClient, unless the browser version could change the type of cookies being returned when it first logs in?

@pedroestima-sgg
Copy link

But indeed, it looks like CloudFlare is making some kind of check on browser integrity. I tried with the user-agent from my logged in session in the browser and it worked (at least for now)

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

2 participants