[Bug 258389] ports-mgmt/distilator: Fails on comms/qtel: requests.exceptions.InvalidSchema: No connection adapters were found for 'make:'

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 09 Sep 2021 16:17:07 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=258389

            Bug ID: 258389
           Summary: ports-mgmt/distilator: Fails on comms/qtel:
                    requests.exceptions.InvalidSchema: No connection
                    adapters were found for 'make:'
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: yuri@freebsd.org
                CC: ehaupt@FreeBSD.org, hamradio@FreeBSD.org
                CC: ehaupt@FreeBSD.org, hamradio@FreeBSD.org

rev eb3ceff682682389456e66657eabd66e01fdbca4



$ cd /usr/ports/comms/qtel && distilator 
200 [WWW]       http://www.svxlink.org/
multiprocessing.pool.RemoteTraceback: 
"""
Traceback (most recent call last):
  File "/usr/local/bin/distilator", line 134, in validate_url_pool
    req = requests.head(url, timeout=args.timeout, headers=headers)
  File "/usr/local/lib/python3.8/site-packages/requests/api.py", line 104, in
head
    return request('head', url, **kwargs)
  File "/usr/local/lib/python3.8/site-packages/requests/api.py", line 61, in
request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 542,
in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 649,
in send
    adapter = self.get_adapter(url=request.url)
  File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 742,
in get_adapter
    raise InvalidSchema("No connection adapters were found for
{!r}".format(url))
requests.exceptions.InvalidSchema: No connection adapters were found for
'make:'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.8/multiprocessing/pool.py", line 125, in worker
    result = (True, func(*args, **kwds))
  File "/usr/local/lib/python3.8/multiprocessing/pool.py", line 48, in mapstar
    return list(map(*args))
  File "/usr/local/bin/distilator", line 158, in validate_url_pool
    status_code = resolve_or_timeout_error(url, urltype, args)
  File "/usr/local/bin/distilator", line 114, in resolve_or_timeout_error
    if hostname_resolves(hostname):
  File "/usr/local/bin/distilator", line 103, in hostname_resolves
    socket.gethostbyname(hostname)
TypeError: gethostbyname() argument 1 must be str, bytes or bytearray, not None
"""

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/local/bin/distilator", line 246, in <module>
    main()
  File "/usr/local/bin/distilator", line 238, in main
    result = pool.map(func, iterable)
  File "/usr/local/lib/python3.8/multiprocessing/pool.py", line 364, in map
    return self._map_async(func, iterable, mapstar, chunksize).get()
  File "/usr/local/lib/python3.8/multiprocessing/pool.py", line 771, in get
    raise self._value
TypeError: gethostbyname() argument 1 must be str, bytes or bytearray, not None

-- 
You are receiving this mail because:
You are the assignee for the bug.