condemil/gist

unknown error

Opened this issue · 0 comments

OS: windows
OS Version: 10
Sublime Text Version: 3 Build 3143

Gist User Settings (without your secret token):



{
    // Your GitHub API token
    // see: https://github.com/condemil/Gist#generating-access-token
    "token": "",

    // Show GitHub organizations
    // Example: "company1", "company2"
    "include_orgs": [],

    // Show GitHub users
    // Example: "user1", "user2"
    "include_users": [],

    // Show the authors of Gists
    "show_authors": false,

    // Prefer first file name instead of description in Open Gist menu
    "prefer_filename": false,

    // Proxy server
    // Format: "http://user:pass@proxy:port"
    "https_proxy": "",

    // Github URL for public & enterprise
    // Default: https://api.github.com for github.com
    // Example: https://github.domain.com/api/v3
    "api_url": "https://api.github.com",

    // Max Gists to show (max 100 allowed by GitHub API)
    "max_gists": 100,

    // Only use starred gists
    "use_starred": false,

    // Disable the "save file..." dialog when closing a Gist
    "supress_save_dialog": true,

    // Update the Gist upon saving the file, suppressing the filename dialog.
    "update_on_save": true

    // Limit to gists with specific prefix
    //"gist_prefix": "Snippet:",

    // Limit to gists with specific tag (#tag)
    //"gist_tag": "snippet"
}

Steps to reproduce the issue:

i try to "command": "gist" and get the error
https://gyazo.com/0fdbb2015a9f69ae6d29b69069e4840b

but "command": "gist_list" for example is working well

Additional information (error message / screenshot):

Traceback (most recent call last):
File "C:\Users\User\AppData\Roaming\Sublime Text 3\Installed Packages\Gist.sublime-package\gist_40_request.py", line 45, in api_request
with contextlib.closing(urllib.urlopen(request)) as response:
File "./python3.3/urllib/request.py", line 156, in urlopen
File "./python3.3/urllib/request.py", line 475, in open
File "./python3.3/urllib/request.py", line 587, in http_response
File "./python3.3/urllib/request.py", line 513, in error
File "./python3.3/urllib/request.py", line 447, in _call_chain
File "./python3.3/urllib/request.py", line 595, in http_error_default
urllib.error.HTTPError: HTTP Error 404: Not Found

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "gist_80 in C:\Users\User\AppData\Roaming\Sublime Text 3\Installed Packages\Gist.sublime-package", line 55, in _fn
File "gist_80 in C:\Users\User\AppData\Roaming\Sublime Text 3\Installed Packages\Gist.sublime-package", line 205, in on_gist_filename
File "gist_80 in C:\Users\User\AppData\Roaming\Sublime Text 3\Installed Packages\Gist.sublime-package", line 79, in create_gist
File "C:\Users\User\AppData\Roaming\Sublime Text 3\Installed Packages\Gist.sublime-package\gist_40_request.py", line 53, in api_request
raise SimpleHTTPError('{}: {}'.format(err.code, err.read()))
gist_20_exceptions.SimpleHTTPError: 404: b'{"message":"Not Found","documentation_url":"https://developer.github.com/v3/gists/#create-a-gist"}'
error: Gist: unknown error (please, report a bug!)