Error authenticating with OAuth2 #79

Closed
emilford opened this Issue Apr 25, 2012 · 4 comments

3 participants

@emilford

I've been trying to get gist-vim working. I followed the steps to create a new application on my github account, input the client ID and secret, and authorize gist-vim, but when I input the PIN, I get a series of errors dumped to vim. I also have the github global user defined. What am I doing wrong here?

Error detected while processing function gist#Gist..50_GistPost..50_GetAuthHeader:
line 43:
E117: Unknown function: webapi#http#post
E15: Invalid expression: webapi#http#post(access_token_url, {"client_id": client_id, "code": pin, "client_secret": client_secret})
line 45:
E121: Undefined variable: res
E116: Invalid arguments for function split(res.content, '&')
E15: Invalid expression: split(res.content, '&')
Error detected while processing function gist#Gist..50_GistPost:
line 9:
E117: Unknown function: webapi#json#encode
E116: Invalid arguments for function webapi#http#post('https://api.github.com/gists', webapi#json#encode(gist), auth)
E15: Invalid expression: webapi#http#post('https://api.github.com/gists', webapi#json#encode(gist), auth)
line 10:
E121: Undefined variable: res
E116: Invalid arguments for function matchstr(res.header, '^Status:'), '^[^:]+: \zs.')
E116: Invalid arguments for function matchstr(matchstr(res.header, '^Status:'), '^[^:]+: \zs.
')
E15: Invalid expression: matchstr(matchstr(res.header, '^Status:'), '^[^:]+: \zs.*')
line 11:
E121: Undefined variable: status
E15: Invalid expression: status =~ '^2'
line 26:
E121: Undefined variable: loc
E15: Invalid expression: loc

@mattn
Owner

you don't install webai-vim.

@mattn mattn closed this Apr 25, 2012
@emilford

Great, that fixed it. But is that documented somewhere and I just missed it?

@mattn
Owner
@fayimora

I have the same error but posted it on issue62
Any help?

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