condemil / gist

Sublime Text plugin for creating new Gists from selected text
MIT License
725 stars 136 forks source link

Gist: unknown error on Gist commands (insert, open, create, public, add file to gist) #87

Open ghost opened 11 years ago

ghost commented 11 years ago

Hello There,

I'm using a licensed Sublime Text 3 version.

Installed this gist through package control, and manually as well. Error is the same.

This is the error I receive upon - Trying to create my first gist (Not asked to insert credential as expected).

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/Users/e.charles2/Library/Application Support/Sublime Text 3/Installed Packages/Gist.sublime-package/gist.py", line 168, in _fn return fn(_args, *_kwargs) File "/Users/e.charles2/Library/Application Support/Sublime Text 3/Installed Packages/Gist.sublime-package/gist.py", line 571, in run filtered = gists_filter(get_gists()) File "/Users/e.charles2/Library/Application Support/Sublime Text 3/Installed Packages/Gist.sublime-package/gist.py", line 279, in get_gists return api_request(GISTS_URL) File "/Users/e.charles2/Library/Application Support/Sublime Text 3/Installed Packages/Gist.sublime-package/gist.py", line 339, in api_request_native request.add_header('Authorization', 'Basic ' + base64.urlsafe_b64encode(basic_auth_string())) File "/Users/e.charles2/Library/Application Support/Sublime Text 3/Installed Packages/Gist.sublime-package/gist.py", line 73, in basic_auth_string auth_string = u'%s:%s' % get_credentials() File "/Users/e.charles2/Library/Application Support/Sublime Text 3/Installed Packages/Gist.sublime-package/gist.py", line 119, in keychain_get_credentials c_char_p(SERVER), # server name TypeError: bytes or integer address expected instead of str instance error: Gist: unknown error (please, report a bug!)

I'm on OSX Lion 10.8.3

condemil commented 11 years ago

etiennejsnippets, try the last version from master branch.

leecade commented 11 years ago

there is my error log:

There are no packages ready for upgrade
Traceback (most recent call last):
  File "gist in /Library/Application Support/Sublime Text 3/Installed Packages/Gist.sublime-package", line 204, in _fn
  File "gist in /Library/Application Support/Sublime Text 3/Installed Packages/Gist.sublime-package", line 682, in run
  File "gist in /Library/Application Support/Sublime Text 3/Installed Packages/Gist.sublime-package", line 340, in get_gists
  File "gist in /Library/Application Support/Sublime Text 3/Installed Packages/Gist.sublime-package", line 435, in api_request_native
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe7 in position 78258: ordinal not in range(128)
error: Gist: unknown error (please, report a bug!)There are no packages ready for upgrade
Traceback (most recent call last):
  File "gist in /Library/Application Support/Sublime Text 3/Installed Packages/Gist.sublime-package", line 204, in _fn
  File "gist in /Library/Application Support/Sublime Text 3/Installed Packages/Gist.sublime-package", line 682, in run
  File "gist in /Library/Application Support/Sublime Text 3/Installed Packages/Gist.sublime-package", line 340, in get_gists
  File "gist in /Library/Application Support/Sublime Text 3/Installed Packages/Gist.sublime-package", line 435, in api_request_native
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe7 in position 78258: ordinal not in range(128)
error: Gist: unknown error (please, report a bug!)
condemil commented 11 years ago

I don't think that this is the last version. The api_request_native function not includes line 435 now.

condemil commented 11 years ago

@etiennejsnippets please try everything from scratch as described here #94