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

ValidationError: There was a problem with GV (code 2046) #4

Closed
eribol opened this issue Sep 1, 2018 · 3 comments
Closed

ValidationError: There was a problem with GV (code 2046) #4

eribol opened this issue Sep 1, 2018 · 3 comments

Comments

@eribol
Copy link

eribol commented Sep 1, 2018

File "ismsyolla.py", line 15, in <module>
    __name__ == '__main__' and run()
  File "ismsyolla.py", line 12, in run
    voice.send_sms(phoneNumber, text)
  File "/home/.../projem/lib/python3.7/site-packages/googlevoice/voice.py", line 209, in send_sms
    'sms', {'phoneNumber': phoneNumber, 'text': text})
  File "/home/.../projem/lib/python3.7/site-packages/googlevoice/voice.py", line 299, in __validate_special_page
    util.load_and_validate(self.__do_special_page(page, data))
  File "/home/.../projem/lib/python3.7/site-packages/googlevoice/util.py", line 21, in load_and_validate
    validate_response(response.json())
  File "/home/.../projem/lib/python3.7/site-packages/googlevoice/util.py", line 14, in validate_response
    raise ValidationError('There was a problem with GV: %s' % response)
googlevoice.util.ValidationError: There was a problem with GV: {'ok': False, 'data': {'code': 2046}}
@eribol
Copy link
Author

eribol commented Sep 1, 2018

Okey, google voice works only in USA. I gues problem is about it.

@jaraco
Copy link
Owner

jaraco commented Sep 1, 2018

I see one reference that suggests it has to do with your location.

I see another reference that suggests the issue is the lack of OAuth.

If we could say definitively what the {"code": 2046} means, I'd gladly add an enhanced error message.

@jaraco jaraco changed the title There was a problem with GV ValidationError: There was a problem with GV (code 2046) Sep 1, 2018
@jaraco
Copy link
Owner

jaraco commented Sep 1, 2018

Let's track this issue in pettazz#44.

@jaraco jaraco closed this as completed Sep 1, 2018
jaraco pushed a commit that referenced this issue May 2, 2020
use spaces, fixed indentation, format using autopep8
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