question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:11

github_iconTop GitHub Comments

1reaction
bryanlavergnecommented, Apr 11, 2018

Tried it now, I was able to log in.

I was already logged in in my current browser session; so I logged out, went to voice.google.com, clicked Sign In, had to select the name of my account since it recognizes my browser, it prompted for a password then succeeded.

0reactions
chris001commented, Apr 11, 2018

Can you try it again with the code from this repo: https://github.com/EspaceNetworks/pygooglevoice

Read more comments on GitHub >

github_iconTop Results From Across the Web

urllib2 HTTP Error 400: Bad Request - python - Stack Overflow
The reason that "the dog" returns a 400 Error is because you aren't escaping the string for a URL. If you do this:...
Read more >
Fix for "urllib.error.HTTPError: HTTP Error 400: Bad Request"
I ran into this error whenever I'm using urllib.request urllretrieve to download some pdf files and it seems it only appears for some...
Read more >
Eth2 : urllib.error.HTTPError: HTTP Error 400: Bad Request
Hi, wondering why am I getting urllib.error.HTTPError: HTTP Error 400: Bad Request for the following .
Read more >
Untitled
Web design links style, Facebook new version 2015, Short run book ... Shy guy song lyrics, Code roi hammurabi, Sergio szwarcberg, Wisata gunung...
Read more >
Vop - ALBA.Net
Bonfire night safety activities, Baby hands and feet drawings, Crack call of duty ... Exam fever chemistry, Real vs barca 3-1, Onepricetaxes discount...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found