Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't validate response #45

Closed
haylinmoore opened this issue Jul 7, 2017 · 2 comments
Closed

Can't validate response #45

haylinmoore opened this issue Jul 7, 2017 · 2 comments

Comments

@haylinmoore
Copy link

Traceback (most recent call last):
  File "sms.py", line 10, in <module>
    voice.send_sms("13018511936", text)
  File "/usr/local/lib/python2.7/dist-packages/googlevoice/voice.py", line 190, in send_sms
    self.__validate_special_page('sms', {'phoneNumber': phoneNumber, 'text': text})
  File "/usr/local/lib/python2.7/dist-packages/googlevoice/voice.py", line 287, in __validate_special_page
    load_and_validate(self.__do_special_page(page, data))
  File "/usr/local/lib/python2.7/dist-packages/googlevoice/util.py", line 65, in load_and_validate
    validate_response(loads(response.read()))
  File "/usr/local/lib/python2.7/dist-packages/googlevoice/util.py", line 59, in validate_response
    raise ValidationError('There was a problem with GV: %s' % response)
googlevoice.util.ValidationError: There was a problem with GV: {u'data': {u'code': 58}, u'ok': False}

So I was using pygooglevoice to monitor my server. All the sudden I get that error when I try to send a SMS.

import sys
from googlevoice import Voice
from googlevoice.util import input

voice = Voice()
voice.login(email='-snip-', passwd='-snip-')

text = sys.argv[1];

voice.send_sms("-snip-", text)
@69sparrow69
Copy link

I literally posted the same problem today. Issue #44

@haylinmoore
Copy link
Author

ok

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants