paradox icon indicating copy to clipboard operation
paradox copied to clipboard

"Tried contacting Github, but I can’t understand the result."

Open tpapp opened this issue 7 years ago • 5 comments

Using paradox-version 2.5.1, I get the following error from paradox-upgrade-packages. Also, there is no *Paradox Github* buffer.

Debugger entered--Lisp error: (error "Tried contacting Github, but I can’t understand the result.  See *Paradox Github* buffer for the full result")
  signal(error ("Tried contacting Github, but I can’t understand the result.  See *Paradox Github* buffer for the full result"))
  error("Tried contacting Github, but I can't understand the result.  See *Paradox Github* buffer for the full result")
  paradox--github-parse-response-code()
  #f(compiled-function (&optional process event) #<bytecode 0x20be589>)()
  paradox--github-action("user/starred?per_page=100" :async nil :callback #f(compiled-function (res) #<bytecode 0x237fb61>) :reader paradox--full-name-reader)
  paradox--refresh-user-starred-list(nil)
  paradox-list-packages(nil)
  paradox-upgrade-packages()
  eval((paradox-upgrade-packages) nil)
  elisp--eval-last-sexp(nil)
  eval-last-sexp(nil)
  funcall-interactively(eval-last-sexp nil)
  call-interactively(eval-last-sexp nil nil)
  command-execute(eval-last-sexp)

tpapp avatar Nov 07 '18 12:11 tpapp

Thu Nov 8 11:53:41 GMT 2018

Have you tried version 2.5.2 - using Emacs' builtin package system?

rprimus avatar Nov 08 '18 11:11 rprimus

It turns out I have the latest version from MELPA. cf https://github.com/Malabarba/paradox/issues/157

tpapp avatar Nov 08 '18 12:11 tpapp

Thu Nov 8 13:22:55 GMT 2018

A couple things to try:

  1. Stop emacs. Remove all .elc files. Restart emacs and try again.
  2. Run paradox-list-packages

Edit:

Forgot to ask - do you have a github token? From paradox-github.el:

To generate an access token:
  1. Visit the page https://github.com/settings/tokens/new?scopes=public_repo&description=Paradox
     and login to github (if asked).
  2. Click on \"Generate Token\", copy the generated token, and
     save it to this variable by writing
         (setq paradox-github-token TOKEN)
     somewhere in your configuration and evaluating it (or just
     restart emacs).

rprimus avatar Nov 08 '18 13:11 rprimus

I do have an access token. I migrated my home directory to a new computer, and perhaps I missed something and that is causing this error, as

(setq paradox-github-token t)

solves it.

tpapp avatar Nov 11 '18 07:11 tpapp

Deleting .elc files and re-running paradox-list-packages did not help though.

tpapp avatar Nov 11 '18 07:11 tpapp