defunkt / gist.el

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

Can't get gist.el to work behind a proxy #64

Closed smaret closed 5 years ago

smaret commented 9 years ago

I can't get gist.el to work behind my university proxy. In my emacs.el, I have set the url-proxy-service variable as follows:

(setq url-proxy-services '(("http" . "proxy.myuniversity.fr:3128")))

When I run M-x gist-list in Emacs, it displays the following message:

Opening TLS connection with `gnutls-clu --insecure -p 443 api.github.com`

and after a few moments:

Could not create connection to api.github.com:443
smaret commented 9 years ago

I've changed the 'url-proxy-service' variable to this:

(setq url-proxy-services
   '(("no_proxy" . "^\\(localhost\\|10.*\\)"
      ("http" . "proxy.myuniversity.fr:3128")
      ("https" . "proxy.myuniversity.fr:3128")))

I don't get the time-out anymore, but this message instead:

Contacting host: proxy.myuniversity.fr:3128
byte-code: JSON readtable error
byte-code: End of buffer

Any advice?

Bost commented 9 years ago

Bumped to this problem too :( But think it has nothing to do with proxy.

tripleee commented 9 years ago

There are multiple scenarios. For proper troubleshooting, more details would be necessary, or at least useful.

If your organization blocks outbound traffic to port 443, you probably need to connect via their proxy. But does the proxy support HTTPS? This is often not the case. Can you connect to Github with (say) echo "GET https://api.github.com/ HTTP/1.0" | openssl s_client -quiet -crlf -connect proxy:port? (Where port can be 3128, 443, 80, or a number of other things, depending.)

Yevgnen commented 7 years ago

Any news ?