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

Already on GitHub? Sign in to your account

Unkown Error #76

florianeckerstorfer opened this Issue Mar 27, 2013 · 2 comments


None yet
3 participants

When I try to use the plugin (Open Gist, Save Gist, etc) the following error occurs

Traceback (most recent call last):
  File "./gist.py", line 168, in _fn
  File "./gist.py", line 571, in run
  File "./gist.py", line 279, in get_gists
  File "./gist.py", line 339, in api_request_native
  File "./gist.py", line 73, in basic_auth_string
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 9: ordinal not in range(128)
error: Gist: unknown error (please, report a bug!)

I've got the same failure too, although my 'UnicodeDecodeError' was caused by some 'utf-8' decoding:

UnicodeDecodeError: 'utf8' codec can't decode byte 0xc1 in position 8: invalid start byte
error: Gist: UnicodeDecodeError returnded 'utf8' codec can't decode byte 0xc1 in position 8: invalid start byte

This error raises only for some of my Gists. I do not know how to avoid that, as I cannot find any special characters within these files.
I just added an 'UnicodeDecodeError' exception to 'gist.py' at line 198:

except UnicodeDecodeError as err:
sublime.error_message("Gist: This failure seems to be based on an empty 'response' between line 409-421 \n UnicodeDecodeError returned %s" % err)

Does not help, but gives a better indication of the error that happened.

Hey...I recognized, that I get this failure only when I want to open a Gist that contains a 'thumbnail.png'!
So...seems it is unable to import *.png files...but I haven't found a solution!

@condemil condemil added a commit that referenced this issue Aug 11, 2013

@condemil condemil Fixes issue #76 5015020

@condemil condemil closed this Aug 11, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment