mtomwing / pickups

IRC gateway for hangups
MIT License
73 stars 25 forks source link

google authentication not working #21

Open yardenac opened 7 years ago

yardenac commented 7 years ago

Am I the only one getting errors like this? I'm not sure if the problem is with hangouts. Has anybody used pickups successfully in the past year?

$ python -m pickups
Sign in with your Google account:
Email: ***@gmail.com
Password:
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/hangups/auth.py", line 338, in _make_token_request
    r.raise_for_status()
  File "/usr/lib/python3.6/site-packages/requests/models.py", line 909, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: https://accounts.google.com/o/oauth2/token

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/hangups/auth.py", line 159, in get_auth
    access_token = _auth_with_refresh_token(session, refresh_token)
  File "/usr/lib/python3.6/site-packages/hangups/auth.py", line 306, in _auth_with_refresh_token
    res = _make_token_request(session, token_request_data)
  File "/usr/lib/python3.6/site-packages/hangups/auth.py", line 340, in _make_token_request
    raise GoogleAuthError('Token request failed: {}'.format(e))
hangups.auth.GoogleAuthError: Token request failed: 400 Client Error: Bad Request for url: https://accounts.google.com/o/oauth2/token

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/usr/lib/python3.6/site-packages/pickups/__main__.py", line 16, in <module>
    cookies = hangups.auth.get_auth_stdin(default_cookies_path)
  File "/usr/lib/python3.6/site-packages/hangups/auth.py", line 186, in get_auth_stdin
    return get_auth(CredentialsPrompt(), refresh_token_cache)
  File "/usr/lib/python3.6/site-packages/hangups/auth.py", line 164, in get_auth
    session, credentials_prompt
  File "/usr/lib/python3.6/site-packages/hangups/auth.py", line 280, in _get_authorization_code
    raise GoogleAuthError('Unknown verification code input')
hangups.auth.GoogleAuthError: Unknown verification code input