condemil / gist

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

MissingCredentialsException #143

Closed nifl closed 7 years ago

nifl commented 10 years ago

I added my token to Gist.sublime-settings (user) and am getting a MissingCredentialsException. I'm using ST3, build 3059.

Traceback (most recent call last):
  File "gist in /Users/nifl/Library/Application Support/Sublime Text 3/Installed Packages/Gist.sublime-package", line 31, in _fn
  File "gist in /Users/nifl/Library/Application Support/Sublime Text 3/Installed Packages/Gist.sublime-package", line 193, in on_gist_filename
  File "gist in /Users/nifl/Library/Application Support/Sublime Text 3/Installed Packages/Gist.sublime-package", line 54, in create_gist
  File "request in /Users/nifl/Library/Application Support/Sublime Text 3/Installed Packages/Gist.sublime-package", line 135, in api_request
  File "request in /Users/nifl/Library/Application Support/Sublime Text 3/Installed Packages/Gist.sublime-package", line 47, in api_request_native
  File "request in /Users/nifl/Library/Application Support/Sublime Text 3/Installed Packages/Gist.sublime-package", line 37, in token_auth_string
Gist.request.MissingCredentialsException
error: Gist: unknown error (please, report a bug!)
kalbasit commented 10 years ago

duplicate of #119

I'm having the same problem

leighghunt commented 10 years ago

I'm getting the same issue too:

Traceback (most recent call last):
  File "gist in /Users/lhunt/Library/Application Support/Sublime Text 3/Installed Packages/Gist.sublime-package", line 37, in _fn
  File "gist in /Users/lhunt/Library/Application Support/Sublime Text 3/Installed Packages/Gist.sublime-package", line 317, in run
  File "request in /Users/lhunt/Library/Application Support/Sublime Text 3/Installed Packages/Gist.sublime-package", line 135, in api_request
  File "request in /Users/lhunt/Library/Application Support/Sublime Text 3/Installed Packages/Gist.sublime-package", line 47, in api_request_native
  File "request in /Users/lhunt/Library/Application Support/Sublime Text 3/Installed Packages/Gist.sublime-package", line 37, in token_auth_string
Gist.request.MissingCredentialsException
error: Gist: unknown error (please, report a bug!)

Note, on the ReadMe it states:

Edit the settings file (it should open automatically the first time you use a Gist command) to specifiy either token.

This didn't happen for me, so possibly this is part of the issue? I'm newly working in MacOSX, so not sure where the setting file should be (sorry!) - so I have not yet told Sublime what my Personal Access Token is, and am not sure where to add it...

UPDATE - getting issue in both Sublime Text 3 on MacOSX 10.9.4 (Build 3059), and Sublime Text 2 (build 2221) on Windows 7 Pro.

kalbasit commented 10 years ago

I fixed this by editing the config file manually Preferences > Package Settings > Gist > Settings User and fill it up

{
  // Your GitHub API token
  // see: https://github.com/condemil/Gist#generating-access-token
  "token": "INSERT_TOKEN_HERE"
}
leighghunt commented 10 years ago

Awesome - thanks @eMxyzptlk, that sorted it for me :-)

rudiedirkx commented 10 years ago

Same here. ST3 3065 on Win 7.

@eMxyzptlk I didn't even know that existed! Look at all these package settings! Thanks.

condemil commented 7 years ago

It looks like the issue is solved