This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author matrixise
Recipients docs@python, matrixise, sylye
Date 2019-02-21.10:56:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1550746576.0.0.186883487447.issue36064@roundup.psfhosted.org>
In-reply-to
Content
and I get the same result with the python:3.6.7 image docker

> docker run --rm -v $PWD:/src -it python:3.6.7 python /src/demo.py
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/urllib/request.py", line 1318, in do_open
    encode_chunked=req.has_header('Transfer-encoding'))
  ...
  File "/usr/local/lib/python3.6/socket.py", line 713, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/src/demo.py", line 12, in <module>
    response = urllib.request.urlopen(req)
  ...
  File "/usr/local/lib/python3.6/urllib/request.py", line 1320, in do_open
    raise URLError(err)
urllib.error.URLError: <urlopen error [Errno 111] Connection refused>

I am really sorry but I can't reproduce your issue.

What is your Linux distribution or OS?

Thank you
History
Date User Action Args
2019-02-21 10:56:16matrixisesetrecipients: + matrixise, docs@python, sylye
2019-02-21 10:56:16matrixisesetmessageid: <1550746576.0.0.186883487447.issue36064@roundup.psfhosted.org>
2019-02-21 10:56:15matrixiselinkissue36064 messages
2019-02-21 10:56:15matrixisecreate