-
Notifications
You must be signed in to change notification settings - Fork 47
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
Comments
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 |
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 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? |
But indeed, it looks like CloudFlare is making some kind of check on browser integrity. I tried with the |
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
The text was updated successfully, but these errors were encountered: