title: requests.exceptions.ConnectionError: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory'))
body: <p>My code:</p>
  <pre><code>import requests
  from bs4 import BeautifulSoup as BS
  s = requests.Session()
  s.verify=False
  auth_html=s.get(url='https://wnioski.mazowieckie.pl/MuwWsc/pl/')
  auth_bs=BS(auth_html.content,&quot;html.parser&quot;)
  csrf=auth_bs.select(&quot;input[name=__RequestVerificationToken]&quot;)[0]['value']
  print(csrf)
  </code></pre>
  <p>Error code:</p>
  <pre><code>Traceback (most recent call last):
    File &quot;C:\Users\Admin\OneDrive\venv\lib\site-packages\urllib3\connectionpool.py&quot;, line 699, in urlopen
      httplib_response = self._make_request(
    File &quot;C:\Users\Admin\OneDrive\venv\lib\site-packages\urllib3\connectionpool.py&quot;, line 382, in _make_request
      self._validate_conn(conn)
    File &quot;C:\Users\Admin\OneDrive\venv\lib\site-packages\urllib3\connectionpool.py&quot;, line 1010, in _validate_conn
      conn.connect()
    File &quot;C:\Users\Admin\OneDrive\venv\lib\site-packages\urllib3\connection.py&quot;, line 411, in connect
      self.sock = ssl_wrap_socket(
    File &quot;C:\Users\Admin\OneDrive\venv\lib\site-packages\urllib3\util\ssl_.py&quot;, line 449, in ssl_wrap_socket
      ssl_sock = _ssl_wrap_socket_impl(
    File &quot;C:\Users\Admin\OneDrive\venv\lib\site-packages\urllib3\util\ssl_.py&quot;, line 493, in _ssl_wrap_socket_impl
      return ssl_context.wrap_socket(sock, server_hostname=server_hostname)
    File &quot;C:\Users\Admin\AppData\Local\Programs\Python\Python39\lib\ssl.py&quot;, line 500, in wrap_socket
      return self.sslsocket_class._create(
    File &quot;C:\Users\Admin\AppData\Local\Programs\Python\Python39\lib\ssl.py&quot;, line 1040, in _create
      self.do_handshake()
    File &quot;C:\Users\Admin\AppData\Local\Programs\Python\Python39\lib\ssl.py&quot;, line 1309, in do_handshake
      self._sslobj.do_handshake()
  FileNotFoundError: [Errno 2] No such file or directory
  
  During handling of the above exception, another exception occurred:
  
  Traceback (most recent call last):
    File &quot;C:\Users\Admin\OneDrive\venv\lib\site-packages\requests\adapters.py&quot;, line 439, in send
      resp = conn.urlopen(
    File &quot;C:\Users\Admin\OneDrive\venv\lib\site-packages\urllib3\connectionpool.py&quot;, line 755, in urlopen
      retries = retries.increment(
    File &quot;C:\Users\Admin\OneDrive\venv\lib\site-packages\urllib3\util\retry.py&quot;, line 532, in increment
      raise six.reraise(type(error), error, _stacktrace)
    File &quot;C:\Users\Admin\OneDrive\venv\lib\site-packages\urllib3\packages\six.py&quot;, line 769, in reraise
      raise value.with_traceback(tb)
    File &quot;C:\Users\Admin\OneDrive\venv\lib\site-packages\urllib3\connectionpool.py&quot;, line 699, in urlopen
      httplib_response = self._make_request(
    File &quot;C:\Users\Admin\OneDrive\venv\lib\site-packages\urllib3\connectionpool.py&quot;, line 382, in _make_request
      self._validate_conn(conn)
    File &quot;C:\Users\Admin\OneDrive\venv\lib\site-packages\urllib3\connectionpool.py&quot;, line 1010, in _validate_conn
      conn.connect()
    File &quot;C:\Users\Admin\OneDrive\venv\lib\site-packages\urllib3\connection.py&quot;, line 411, in connect
      self.sock = ssl_wrap_socket(
    File &quot;C:\Users\Admin\OneDrive\venv\lib\site-packages\urllib3\util\ssl_.py&quot;, line 449, in ssl_wrap_socket
      ssl_sock = _ssl_wrap_socket_impl(
    File &quot;C:\Users\Admin\OneDrive\venv\lib\site-packages\urllib3\util\ssl_.py&quot;, line 493, in _ssl_wrap_socket_impl
      return ssl_context.wrap_socket(sock, server_hostname=server_hostname)
    File &quot;C:\Users\Admin\AppData\Local\Programs\Python\Python39\lib\ssl.py&quot;, line 500, in wrap_socket
      return self.sslsocket_class._create(
    File &quot;C:\Users\Admin\AppData\Local\Programs\Python\Python39\lib\ssl.py&quot;, line 1040, in _create
      self.do_handshake()
    File &quot;C:\Users\Admin\AppData\Local\Programs\Python\Python39\lib\ssl.py&quot;, line 1309, in do_handshake
      self._sslobj.do_handshake()
  urllib3.exceptions.ProtocolError: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory'))
  
  During handling of the above exception, another exception occurred:
  
  Traceback (most recent call last):
    File &quot;C:\Users\Admin\OneDrive\parser.py&quot;, line 5, in &lt;module&gt;
      auth_html=s.get(url='https://wnioski.mazowieckie.pl/MuwWsc/pl/')
    File &quot;C:\Users\Admin\OneDrive\venv\lib\site-packages\requests\sessions.py&quot;, line 555, in get
      return self.request('GET', url, **kwargs)
    File &quot;C:\Users\Admin\OneDrive\venv\lib\site-packages\requests\sessions.py&quot;, line 542, in request
      resp = self.send(prep, **send_kwargs)
    File &quot;C:\Users\Admin\OneDrive\venv\lib\site-packages\requests\sessions.py&quot;, line 655, in send
      r = adapter.send(request, **kwargs)
    File &quot;C:\Users\Admin\OneDrive\venv\lib\site-packages\requests\adapters.py&quot;, line 498, in send
      raise ConnectionError(err, request=request)
  requests.exceptions.ConnectionError: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory'))
  
  Process finished with exit code 1
  
  </code></pre>
  <p>Python version: 3.9.6</p>