brain-hacker-antilammer / pygooglevoice

Automatically exported from code.google.com/p/pygooglevoice
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Python3 Call/SMS/etc Request Errors #1

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Run examples/call.py in python3,
2. login and call a number as normal
3. Traceback endswith

urllib.error.HTTPError: HTTP Error 500: Internal Server Error

What is the expected output? What do you see instead?

Under python2, the google service completes the call as expected.

Cannot peek at packets since its over SSL, maybe an issue for google voice?

Original issue reported on code.google.com by justquick on 29 Jul 2009 at 2:37

GoogleCodeExporter commented 9 years ago
I'm seeing the same error using python 3.1.1 on Windows.

  File "call.py", line 10, in <module>
    voice.call(outgoingNumber, forwardingNumber)
  File "C:\Software\pygooglevoice\pygooglevoice-0.3\googlevoice\__init__.py", li
ne 101, in call
    'remember':'1',
  File "C:\Software\pygooglevoice\pygooglevoice-0.3\googlevoice\__init__.py", li
ne 221, in __do_special_page
    return self.__do_page(page, data, headers)
  File "C:\Software\pygooglevoice\pygooglevoice-0.3\googlevoice\__init__.py", li
ne 210, in __do_page
    return urlopen(Request(getattr(settings, page), data, headers))
  File "C:\Python31\lib\urllib\request.py", line 119, in urlopen
    return _opener.open(url, data, timeout)
  File "C:\Python31\lib\urllib\request.py", line 353, in open
    response = meth(req, response)
  File "C:\Python31\lib\urllib\request.py", line 465, in http_response
    'http', request, response, code, msg, hdrs)
  File "C:\Python31\lib\urllib\request.py", line 391, in error
    return self._call_chain(*args)
  File "C:\Python31\lib\urllib\request.py", line 325, in _call_chain
    result = func(*args)
  File "C:\Python31\lib\urllib\request.py", line 473, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 500: Internal Server Error

Original comment by strefet...@gmail.com on 21 Sep 2009 at 3:06

GoogleCodeExporter commented 9 years ago
Tried python 2.6.2 and it works as expected.

Original comment by strefet...@gmail.com on 21 Sep 2009 at 4:25

GoogleCodeExporter commented 9 years ago
My buddy was trying to figure out with me why it worked for me and not for him 
(he was getting this 500 error as well). Come to find out it was a account and 
not code specific issue.

He needed to setup a google voice number first and then things started working 
out for him just fine.

Here is what you can try inside of the google voice web interface. Simply go to 
the 'Phones' tab of your Settings and click the 'Get a Google number' link and 
then setup a google number. 

It should work fine after this.

Original comment by madhattershacker@gmail.com on 9 Dec 2010 at 6:35