That's exceedingly strange, and I have not seen it before. The proxy is
involved when your browser connects to the notebook server, but it
shouldn't be involved at all when the kernel connects to the outside world.
Can you check `os.environ` to see if there are any relevant environment
variables that might be sneaking in here? You might also check things like
`nslookup github.com` to make sure DNS isn't confused.

-Min

On Fri, Sep 30, 2016 at 10:29 PM, Ted Liefeld <lief...@broadinstitute.org>
wrote:

> Hi
>
> I am playing around with running a JupyterHub that uses the Docker
> singleuser image.  I have it up and running happily, but I cannot seem to
> connect to any HTTPS websites from it unless I turn off certificate
> validation.  In every case it complains that the certificate does not match
> the hostname, where the displayed hostname is the hostname of the hub (
> jupyterhubtest.genomespace.org) and not of the site I am trying to
> connect to.
>
> e.g.
>
> import requests
> requests.get('https://github.com')
>
> CertificateError: hostname 'github.com' doesn't match 
> 'jupyterhubtest.genomespace.org'
>
>
> Now the code below works, but I would rather not have to turn off
> verification for every request that is made from the hub
>
> requests.get('https://github.com', verify=False)
>
>
> Now I know that the kernel in Docker is proxying through the hub and
> that's probably the cause of the error, but I haven't been able to figure
> out a fix yet.  Has anyone else encountered this (and better yet figured
> out a fix?)
>
> Thanks
>
> --
> You received this message because you are subscribed to the Google Groups
> "Project Jupyter" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jupyter+unsubscr...@googlegroups.com.
> To post to this group, send email to jupyter@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/jupyter/9be93e9b-d486-4546-ac60-c29ceebf7c3d%40googlegroups.com
> <https://groups.google.com/d/msgid/jupyter/9be93e9b-d486-4546-ac60-c29ceebf7c3d%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jupyter+unsubscr...@googlegroups.com.
To post to this group, send email to jupyter@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jupyter/CAHNn8BWjqMrhwbdU8jEqMn3-Y%3DEbDoG4haj6kDsGo7H77kyv3w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to