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

Unkown Error #76

Closed
florianeckerstorfer opened this issue Mar 27, 2013 · 2 comments
Closed

Unkown Error #76

florianeckerstorfer opened this issue Mar 27, 2013 · 2 comments
Labels

Comments

@florianeckerstorfer
Copy link

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!)
@milkbread
Copy link

Hi,
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.

@milkbread
Copy link

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 added a commit that referenced this issue Aug 11, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants