defunkt / gist.el

Yet another Emacs paste mode, this one for Gist.
550 stars 90 forks source link

Error while creating gist #116

Closed chmouel closed 5 years ago

chmouel commented 5 years ago

When trying to create a gist with version 1.4.0 and emacs 26.2 I am getting an error :

Debugger
 entered--Lisp error: (wrong-type-argument number-or-marker-p nil)
  #f(compiled-function (resp buffer) #<bytecode 0x439aa569>)(#<gh-api-paged-response gh-api-paged-response> #<buffer  *http api.github.com:443*>)
  apply(#f(compiled-function (resp buffer) #<bytecode 0x439aa569>) (#<gh-api-paged-response gh-api-paged-response> #<buffer  *http api.github.com:443*>))
  #f(compiled-function (cl-cnm resp buffer) #<bytecode 0x439f6569>)(#f(compiled-function (&rest cnm-args) #<bytecode 0x432e6cc5>) #<gh-api-paged-response gh-api-paged-response> #<buffer  *http api.github.com:443*>)
  apply(#f(compiled-function (cl-cnm resp buffer) #<bytecode 0x439f6569>) #f(compiled-function (&rest cnm-args) #<bytecode 0x432e6cc5>) (#<gh-api-paged-response gh-api-paged-response> #<buffer  *http api.github.com:443*>))
  #f(compiled-function (&rest args) #<bytecode 0x432e6ca9>)(#<gh-api-paged-response gh-api-paged-response> #<buffer  *http api.github.com:443*>)
  apply(#f(compiled-function (&rest args) #<bytecode 0x432e6ca9>) #<gh-api-paged-response gh-api-paged-response> #<buffer  *http api.github.com:443*>)
  gh-url-response-init(#<gh-api-paged-response gh-api-paged-response> #<buffer  *http api.github.com:443*>)

If i understand properly it seems that it is not able to parse the headers response, the paste get created tho, it just doesn't report the URL

chmouel commented 5 years ago

Seem likes doing a brew upgrade/cleanup/doctoron my system fixed this issue, cannot say which one exactly needed to be updated but it worked,