dmorlitz / pygooglevoice

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

gvoice not working #27

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
  File "/usr/bin/gvoice", line 5, in ?
    pkg_resources.run_script('pygooglevoice==0.5', 'gvoice')
  File
"/usr/lib/python2.4/site-packages/setuptools-0.6c11-py2.4.egg/pkg_resources.py",
line 489, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File
"/usr/lib/python2.4/site-packages/setuptools-0.6c11-py2.4.egg/pkg_resources.py",
line 1214, in run_script
    exec script_code in namespace, namespace
  File "/usr/bin/gvoice", line 97, in ?

  File "build/bdist.linux-x86_64/egg/googlevoice/voice.py", line 101, in call
  File "build/bdist.linux-x86_64/egg/googlevoice/voice.py", line 210, in
__validate_special_page
  File "build/bdist.linux-x86_64/egg/googlevoice/util.py", line 65, in
load_and_validate
  File "build/bdist.linux-x86_64/egg/googlevoice/util.py", line 59, in
validate_response
googlevoice.util.ValidationError: There was a problem with GV: {'data':
{'code': 20}, 'ok': False}
Logging out of voice...

Original issue reported on code.google.com by vipki...@gmail.com on 10 Dec 2009 at 9:58

GoogleCodeExporter commented 9 years ago
seems like whatever number you were trying to call was invalid or you havent 
setup
your phoneType correctly

Original comment by justquick on 10 Dec 2009 at 11:31

GoogleCodeExporter commented 9 years ago
On the GV website code == 20 get's replaced with an "Illegal Number" error 
message string - this happens when 
you try to call a malformatted (e.g., too short) number or try to call your 
forwarding number.

Original comment by andreas.amann@gmail.com on 11 Dec 2009 at 12:38

GoogleCodeExporter commented 9 years ago
interesting. andreas: do you know where to find the complete listing of GV error
codes? If so, it would be incredibly useful for exception handling.

Original comment by justquick on 11 Dec 2009 at 2:17

GoogleCodeExporter commented 9 years ago
The codes are all inside the incredibly messy/compressed js source of GV. It 
seems as if "20" is the only error 
code that is actually used in this way - most errors seem to be transferred as 
en error object in the JSON:

{'ok':False, 'error':'Error String'}

Original comment by andreas.amann@gmail.com on 11 Dec 2009 at 4:32

GoogleCodeExporter commented 9 years ago
Which js file are they located in? I cannot seem to find them at all

Original comment by justquick on 11 Dec 2009 at 1:04

GoogleCodeExporter commented 9 years ago
https://www.google.com/voice/resources/3058222619-gc_prod.js

"Invalid number" error is listed on line 346 which you get to from either line 
369 or 464:

if(a.data&&a.data.code=="20")b=z3.Rm

Searching for ".code==" in that file reveals that code 20 currently is the only 
one being used.

Original comment by andreas.amann@gmail.com on 12 Dec 2009 at 5:31

GoogleCodeExporter commented 9 years ago
gotcha. good to know for future reference. i will probably update the code soon 
to 
provide a better error message in this case. but in the mean time, time to 
close this 
ticket

Original comment by justquick on 12 Dec 2009 at 5:00