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

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

Open
ghost opened this issue Jun 20, 2013 · 4 comments

Comments

@ghost
Copy link

ghost commented Jun 20, 2013

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
Copy link
Owner

condemil commented Aug 4, 2013

etiennejsnippets, try the last version from master branch.

@leecade
Copy link

leecade commented Aug 8, 2013

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
Copy link
Owner

condemil commented Aug 9, 2013

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

@condemil
Copy link
Owner

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

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

No branches or pull requests

2 participants