Skip to content
This repository has been archived by the owner on Oct 21, 2022. It is now read-only.

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

Open
tpapp opened this issue Nov 7, 2018 · 5 comments
Open

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

tpapp opened this issue Nov 7, 2018 · 5 comments

Comments

@tpapp
Copy link

tpapp commented Nov 7, 2018

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)
@rprimus
Copy link

rprimus commented Nov 8, 2018

Thu Nov 8 11:53:41 GMT 2018

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

@tpapp
Copy link
Author

tpapp commented Nov 8, 2018

It turns out I have the latest version from MELPA. cf #157

@rprimus
Copy link

rprimus commented Nov 8, 2018

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).

@tpapp
Copy link
Author

tpapp commented Nov 11, 2018

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
Copy link
Author

tpapp commented Nov 11, 2018

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants