thispc / psiphon

A multi-functional version of a popular network circumvention tool
GNU General Public License v3.0
229 stars 59 forks source link

Decoding error when updating servers #31

Closed sunandabansal closed 4 years ago

sunandabansal commented 4 years ago

I get the following error when I try to update servers using python psi_client.py -u -

100% [..........................................................................] 1450949 / 1450949Traceback (most recent call last):
  File "psi_client.py", line 440, in <module>
    update()
  File "psi_client.py", line 311, in update
    js = i[loc:].decode('hex')
  File "/home/username/anaconda3/envs/py27/lib/python2.7/encodings/hex_codec.py", line 42, in hex_decode
    output = binascii.a2b_hex(input)
TypeError: Odd-length string

I am not quite sure what is causing it. Can you please suggest a solution?

crisdeodates commented 4 years ago

Refer #27 for a solution.

sunandabansal commented 4 years ago

I am sorry I didn't check the existing issues. Thank you for helping me out. Using the new file provided in #27 solved it.