mattn / vim-gist

Vim plugin for Gist
http://www.vim.org/scripts/script.php?script_id=2423
1.69k stars 131 forks source link

Post failed: Not Found #225

Closed benwoodward closed 4 years ago

benwoodward commented 4 years ago

Just uninstalled, and reinstalled. Deleted ~/.gist-vim.

I have 2fa.

When I run :Gist I am not prompted to authenticate. I just get the following error:

image

Using NVIM v0.4.2, MacOS Catalina 10.15.2.

I have set no gist vim g: variables.

mattn commented 4 years ago

I don't reproduce this.

benwoodward commented 4 years ago

What’s the best way for me to debug this error?

benwoodward commented 4 years ago

Resolved the problem.

This line of code uses the value of $GITHUB_TOKEN to authenticate if g:gist_token is not set. I have an existing env var by that name for hub. I just had to modify the token's scopes to include 'gists' in Github.