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

Error "if login_response.json().get('captcha_needed', False)" #246

Closed
Onione-Tamiko opened this issue Jan 26, 2023 · 6 comments
Closed

Error "if login_response.json().get('captcha_needed', False)" #246

Onione-Tamiko opened this issue Jan 26, 2023 · 6 comments

Comments

@Onione-Tamiko
Copy link

изображение

Such an error occurs after the first (any) account.
The error appeared after corrections in Issues#241.
I'm waiting for a decision or a parting word on what to do...

@woctezuma
Copy link

woctezuma commented Jan 26, 2023

It seems the response was None instead of a dictionary after calling .json(). Print login_response.status_code if possible.

steampy/steampy/login.py

Lines 84 to 87 in d8af947

@staticmethod
def _check_for_captcha(login_response: requests.Response) -> None:
if login_response.json().get('captcha_needed', False):
raise CaptchaRequired('Captcha required')

@Onione-Tamiko
Copy link
Author

@woctezuma 429

@woctezuma
Copy link

You got temporarily banned for 429 Too Many Requests.

@szcz761
Copy link

szcz761 commented Jan 27, 2023

Do you have any idea how to fix it?

@woctezuma
Copy link

See StackOverflow.

@Onione-Tamiko
Copy link
Author

One of the simplest and easiest solutions is to sleep for 1 minute between accounts...
Previously it was 3 seconds(

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

4 participants