bgreenlee / sublime-github

Sublime Text 2/3 plugin that provides a number of useful commands for GitHub.
MIT License
455 stars 92 forks source link

CurlException: sublime_requests: 22 HTTP error 404 #16

Closed sheldond closed 12 years ago

sheldond commented 12 years ago

I receive this type of error in the console when I run any of the commands:

Traceback (most recent call last):
    File "/usr/lib/sublime-text-2/sublime_plugin.py", line 350, in run_
      return self.run(edit)
    File "./sublime_github.py", line 82, in run
    File "./sublime_github.py", line 90, in get_gists
    File "./github.py", line 110, in list_gists
    File "./github.py", line 53, in get
    File "./github.py", line 70, in request
    File "./sublime_requests.py", line 79, in request
sublime_requests.CurlException: sublime_requests: 22 HTTP error 404 get https://api.github.com/gists/starred?per_page=100&page=1

or

Traceback (most recent call last):
    File "./sublime_github.py", line 251, in on_done_filename
    File "./github.py", line 94, in create_gist
    File "./github.py", line 47, in post
    File "./github.py", line 70, in request
    File "./sublime_requests.py", line 79, in request
sublime_requests.CurlException: sublime_requests: 22 HTTP error 404 post https://api.github.com/gists

I've entered my github_token in User/GitHub.sublime-settings, I have ST2 build 2183 and Ubuntu.

Thanks!

sheldond commented 12 years ago

I just figured out that I put in the wrong token. I entered my api token from my github profile instead of generating an auth token... I've generated the token and now everything seems to work!

bgreenlee commented 12 years ago

Great...although you did uncover a bug, so I'm going to reopen this issue, if you don't mind. You should have gotten a 401 back and a message saying that your token was invalid, not a 404.