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

Message id not a SHA1 hash #4

Closed
bobbymiller opened this issue Jul 4, 2013 · 3 comments
Closed

Message id not a SHA1 hash #4

bobbymiller opened this issue Jul 4, 2013 · 3 comments

Comments

@bobbymiller
Copy link

I can login easily.

When I try to fetch my voicemail messages using pretty much exactly the example in example/voicemail.py I get

File "test_voice.py", line 11, in
print voice.voicemail().messages
File "/mnt/refractthelight/pygooglevoice/googlevoice/util.py", line 242, in messages
return [Message(self, *i) for i in self['messages'].items()]
File "/mnt/refractthelight/pygooglevoice/googlevoice/util.py", line 181, in init
assert is_sha1(id), 'Message id not a SHA1 hash'

AssertionError: Message id not a SHA1 hash

@sceox
Copy link

sceox commented Mar 8, 2014

@jaraco
Copy link
Contributor

jaraco commented Aug 26, 2018

It's not enough to comment out that line. I removed that line in 8058606, but still:

googlevoice master $ .tox/python/bin/python -m pdb examples/download-mp3.py
> /Users/jaraco/Dropbox/code/main/googlevoice/examples/download-mp3.py(1)<module>()
-> from googlevoice import Voice
(Pdb) c
Uncaught exception. Entering post mortem debugging
Running 'cont' or 'step' will restart the program
> /Users/jaraco/Dropbox/code/main/googlevoice/googlevoice/voice.py(250)download()
-> assert util.is_sha1(msg), 'Message id not a SHA1 hash'
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/pdb.py", line 1697, in main
    pdb._runscript(mainpyfile)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/pdb.py", line 1566, in _runscript
    self.run(statement)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/bdb.py", line 585, in run
    exec(cmd, globals, locals)
  File "<string>", line 1, in <module>
  File "/Users/jaraco/Dropbox/code/main/googlevoice/examples/download-mp3.py", line 1, in <module>
    from googlevoice import Voice
  File "/Users/jaraco/Dropbox/code/main/googlevoice/examples/download-mp3.py", line 11, in run
    message.download(download_dir)
  File "/Users/jaraco/Dropbox/code/main/googlevoice/googlevoice/util.py", line 192, in download
    return self.folder.voice.download(self, adir)
  File "/Users/jaraco/Dropbox/code/main/googlevoice/googlevoice/voice.py", line 250, in download
    assert util.is_sha1(msg), 'Message id not a SHA1 hash'
AssertionError: Message id not a SHA1 hash
(Pdb) msg
'NZIIOVOHHMRMXOZIGWHTUMGPITQLXSUQSKGYIPVO'

@jaraco
Copy link
Contributor

jaraco commented Aug 26, 2018

Issue is fixed in googlevoice 2.0.3.

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

3 participants