magithub icon indicating copy to clipboard operation
magithub copied to clipboard

Trying to connect to github signals error (wrong-type-argument stringp nil)

Open joshuabach opened this issue 6 years ago • 0 comments

Whatever I do, I get a (wrong-type-argument stringp nil) error. Be it cloning a new repository, or trying to access the dashbord in an existing one. For example:

M-x magithub-clone RET vermiculus/magithub RET yes RET joshuabach RET <password> RET

(the yes is entered at the prompt for "Create such a token?")

Debugger entered--Lisp error: (wrong-type-argument stringp nil)
  encode-coding-string(nil utf-8)
  ghub--auth("api.github.com" magithub "joshuabach" nil)
  #f(compiled-function () #<bytecode 0x17ecf25>)()
  ghub--retrieve(nil #s(ghub--req :url #s(url :type "https" :user nil :password nil :host "api.github.com" :portspec nil :filename "/repos/vermiculus/magithub" :target nil :attributes nil :fullness t :silent nil :use-cookies t :asynchronous t) :forge nil :silent nil :method "GET" :headers #f(compiled-function () #<bytecode 0x17ecf25>) :handler ghub--handle-response :unpaginate nil :noerror nil :reader nil :callback nil :errorback nil :value nil :extra nil))
  ghub-request("GET" "/repos/vermiculus/magithub" nil :query nil :payload nil :unpaginate nil :headers nil :username nil :auth magithub :host nil)
  ghubp-request(get "/repos/vermiculus/magithub" nil nil)
  apply(ghubp-request get "/repos/vermiculus/magithub" (nil nil))
  ghubp-get-repos-owner-repo(((owner (login . "vermiculus")) (name . "magithub")))
  byte-code("\302 \303 C\304\030\211\305\306B\002\242B\240\210\307\310\311\312\313\005!\314\"\315$\020\316\002!)\262\001\206:\0\211\317\320\002\236A\236A\321\002\236A\322\323\003\003#\266\202\262\001\324\321\002\"\325\326\011\003\304\005%\002\001D\207" [ghubp-contextualize-function magithub-clone-default-directory magithub-clone--get-repo ghubp-get-context nil auth magithub make-byte-code 0 "\300\242\207" vconcat vector [] 1 ghubp-get-repos-owner-repo login owner name user-error "Repository %s/%s does not exist" alist-get read-directory-name "Destination: "] 9)
  call-interactively(magithub-clone record nil)
  command-execute(magithub-clone record)
  helm-M-x(nil #("magithub-clone" 0 14 (match-part "magithub-clone")))
  funcall-interactively(helm-M-x nil #("magithub-clone" 0 14 (match-part "magithub-clone")))
  call-interactively(helm-M-x nil nil)
  command-execute(helm-M-x)

A similar error is reported in #367, though it originates from an entirely different function, so I don't think it's related.

Versions

  • GNU Emacs 26.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.30) of 2018-07-0520181003.1456 Installed from MELPA:
  • magit: 20181218.2039
  • ghub: 20181003.1456
  • magithub: 20181203.1302

joshuabach avatar Dec 20 '18 10:12 joshuabach