Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Running gvoice li returning urllib2.HTTPError: HTTP Error 400: Bad Request #53

Description

@bryanlavergne

I've been experiencing the seemingly inevitable problem of trying to only login with pygooglevoice. I've gotten this far, but am now stuck with this error.

After using pip2.7 install (my Python 3.6 installs have returned errors with the configparser) and setting up my .gvoice file, I get the following after running gvoice li from terminal in OS X 10.13.4.

I've had a hard time parsing the code as to how the URL is built; not sure what to do.

  File "/usr/local/bin/gvoice", line 6, in <module>
    exec(compile(open(__file__).read(), __file__, 'exec'))
  File "/Users/bryanlavergne/Programming/Python/pygooglevoice/bin/gvoice", line 79, in <module>
    login()
  File "/Users/bryanlavergne/Programming/Python/pygooglevoice/bin/gvoice", line 49, in login
    voice.login(options.email,options.passwd)
  File "/Users/bryanlavergne/Programming/Python/pygooglevoice/googlevoice/voice.py", line 76, in login
   result = self.__do_page('login_post', {'Email': email, 'Passwd': passwd, 'gxf': gxf})
  File "/Users/bryanlavergne/Programming/Python/pygooglevoice/googlevoice/voice.py", line 280, in __do_page
    return urlopen(Request(pageuri, data, headers))
  File "/usr/local/Cellar/python@2/2.7.14_3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 154, in urlopen
    return opener.open(url, data, timeout)
  File "/usr/local/Cellar/python@2/2.7.14_3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 435, in open
    response = meth(req, response)
  File "/usr/local/Cellar/python@2/2.7.14_3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 548, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/local/Cellar/python@2/2.7.14_3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 473, in error
    return self._call_chain(*args)
  File "/usr/local/Cellar/python@2/2.7.14_3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 407, in _call_chain
    result = func(*args)
  File "/usr/local/Cellar/python@2/2.7.14_3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 556, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
urllib2.HTTPError: HTTP Error 400: Bad Request

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions