Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install [official/user] docset contacting error #188

Open
elheremes opened this issue Jul 18, 2019 · 7 comments
Open

Install [official/user] docset contacting error #188

elheremes opened this issue Jul 18, 2019 · 7 comments

Comments

@elheremes
Copy link

I've always used helm-dash but recently there was this problem of not being able to connect to Github API when I try to install a new [official/user] docset. I've tried reinstall both helm-dash and emacs but this solution did not work. And yes, I've gnutls installed and compiled with emacs.

helm-dash-install-docset:

Contacting host: api.github.com:443`
gnutls.el: (err=[-50] The request is invalid.) boot: (:priority NORMAL:-VERS-TLS1.3 :hostname api.github.com :loglevel 0 :min-prime-bits 256 :trustfiles (/etc/ssl/certs/ca-certificates.crt) :crlfiles nil :keylist nil :verify-flags nil :verify-error nil :callbacks nil)
gnutls-negotiate: GnuTLS error: #<process api.github.com>, -50

helm-dash-install-user-docset:

Contacting host: dashes-to-dashes.herokuapp.com:443
gnutls.el: (err=[-50] The request is invalid.) boot: (:priority NORMAL:-VERS-TLS1.3 :hostname dashes-to-dashes.herokuapp.com :loglevel 0 :min-prime-bits 256 :trustfiles (/etc/ssl/certs/ca-certificates.crt) :crlfiles nil :keylist nil :verify-flags nil :verify-error nil :callbacks nil)
gnutls-negotiate: GnuTLS error: #<process dashes-to-dashes.herokuapp.com>, -50
@elheremes elheremes changed the title Can't contact github API Install [official/user] doctset contacting error Jul 18, 2019
@elheremes elheremes changed the title Install [official/user] doctset contacting error Install [official/user] docset contacting error Jul 18, 2019
@areina
Copy link
Member

areina commented Jul 24, 2019

Hello, thank you for reporting the issue. We are going to take a look.

@kidd do you think this could be related to the change you did in the app to serve the community docsets?

@kidd
Copy link
Member

kidd commented Jul 24, 2019

@areina, I don't think so cause those changes are not "live" yet. dash-docs doesn't fetch anything from the new ones.

And https://dashes-to-dashes.herokuapp.com/docsets/contrib seems to work fine.

@kidd
Copy link
Member

kidd commented Jul 24, 2019

@elheremes, maybe this will fix your issue:
#178 (comment)
You might have to edit the code a little bit to fit the code after the refactor. (like changing helm-dash prefix to dash-docs)

@elheremes
Copy link
Author

elheremes commented Jul 24, 2019

@elheremes, maybe this will fix your issue:
#178 (comment)
You might have to edit the code a little bit to fit the code after the refactor. (like changing helm-dash prefix to dash-docs)

Okay, now I can retrieve the docs list but if I try to install any docs using dash-docs-install-docsetthis appears again...

Contacting host: raw.github.com:443
gnutls.el: (err=[-50] The request is invalid.) boot: (:priority NORMAL:-VERS-TLS1.3 :hostname raw.github.com :loglevel 0 :min-prime-bits 256 :trustfiles (/etc/ssl/certs/ca-certificates.crt) :crlfiles nil :keylist nil :verify-flags nil :verify-error nil :callbacks nil)
gnutls-negotiate: GnuTLS error: #<process raw.github.com>, -50

Edit: dash-docs-install-user-docsets works fine.

@elheremes
Copy link
Author

Anyone?

@areina
Copy link
Member

areina commented Aug 14, 2019

@elheremes unfortunately, this seems like an emacs bug more than an issue in our side. However, there could be a possible workaround:
magit/ghub#89
https://github.com/magit/ghub/pulls/90

Do you think you could try to adapt it to this project? Otherwise, @kidd or myself could do it, but it will take some time.

Cheers!

@dfeich
Copy link

dfeich commented Jan 10, 2020

I found that the current versions of helm-dash (using helm-dash-20190527.1118 from MELPA) by default have activated the workaround that is described in the magit link above. The setting can be turned on/off by the dash-docs-use-workaround-for-emacs-bug which is set to force by default. The code turns the workaround on for all Emacs versions < 27. This seemingly is too broad a condition.

I am running Emacs Version 26.2 and libgnutsl version: 30518 and I get gnutls err=[-50]
when the workaround is active, i.e. if gnutls-algorithm-priority is set to "NORMAL:-VERS-TLS1.3". Reading the source code, I found the dash-docs-use-workaround-for-emacs-bug variable, and setting it to nil resulted in successful connections.

It would be helpful to mention this variable in the FAQ of the README.

Thanks for this very useful package!

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

No branches or pull requests

4 participants