[v1.13.2] - Update Version Number for Release #9
82 tests run, 0 skipped, 82 failed.
Annotations
Check failure on line 1 in system/indy-node-tests/test_ledger.py
github-actions / test_ledger Test Report
system/indy-node-tests/test_ledger.py.test_send_and_get_nym_positive[TRUSTEE-TRUSTEE]
test setup failure
Raw output
args = ()
kwargs = {'_docker_teardown': <function _docker_teardown.<locals>.wrapped at 0x7f647f5f2ca0>, 'nodes_num_module': 7, 'request': <SubRequest 'docker_setup_and_teardown_module' for <Function test_send_and_get_nym_positive[TRUSTEE-TRUSTEE]>>}
request = <SubRequest 'docker_setup_and_teardown_module' for <Function test_send_and_get_nym_positive[TRUSTEE-TRUSTEE]>>
setup = <function pytest_fixture_setup.<locals>.wrapper.<locals>.setup at 0x7f647f683700>
finalizer = <function pytest_fixture_setup.<locals>.wrapper.<locals>.finalizer at 0x7f647f683790>
def wrapper(*args, **kwargs):
loop = kwargs['event_loop']
request = kwargs['request']
if strip_event_loop:
del kwargs['event_loop']
if strip_request:
del kwargs['request']
gen_obj = f(*args, **kwargs)
async def setup():
res = await gen_obj.__anext__()
return res
def finalizer():
"""Yield again, to finalize."""
async def async_finalizer():
try:
await gen_obj.__anext__()
except StopAsyncIteration:
pass
else:
msg = "Async generator fixture didn't stop."
msg += "Yield only once."
raise ValueError(msg)
loop.run_until_complete(async_finalizer())
request.addfinalizer(finalizer)
> return loop.run_until_complete(setup())
args = ()
f = <function docker_setup_and_teardown_module at 0x7f647f4c99d0>
finalizer = <function pytest_fixture_setup.<locals>.wrapper.<locals>.finalizer at 0x7f647f683790>
gen_obj = <async_generator._impl.AsyncGenerator object at 0x7f647f627580>
kwargs = {'_docker_teardown': <function _docker_teardown.<locals>.wrapped at 0x7f647f5f2ca0>, 'nodes_num_module': 7, 'request': <SubRequest 'docker_setup_and_teardown_module' for <Function test_send_and_get_nym_positive[TRUSTEE-TRUSTEE]>>}
loop = <_UnixSelectorEventLoop running=False closed=False debug=False>
request = <SubRequest 'docker_setup_and_teardown_module' for <Function test_send_and_get_nym_positive[TRUSTEE-TRUSTEE]>>
setup = <function pytest_fixture_setup.<locals>.wrapper.<locals>.setup at 0x7f647f683700>
strip_event_loop = True
strip_request = False
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/pytest_asyncio/plugin.py:97:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/usr/lib/python3.8/asyncio/base_events.py:616: in run_until_complete
return future.result()
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/pytest_asyncio/plugin.py:78: in setup
res = await gen_obj.__anext__()
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/async_generator/_impl.py:366: in step
return await ANextIter(self._it, start_fn, *args)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/async_generator/_impl.py:197: in __next__
return self._invoke(first_fn, *first_args)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/async_generator/_impl.py:209: in _invoke
result = fn(*args)
system/conftest.py:226: in docker_setup_and_teardown_module
await setup(nodes_num_module)
system/docker_setup.py:167: in setup
main(nodes_num=nodes_num)
system/docker_setup.py:130: in main
network_builder(NETWORK_SUBNET,
system/docker_setup.py:33: in network_builder
client.networks.prune()
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/docker/models/networks.py:214: in prune
return self.client.api.prune_networks(filters=filters)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/docker/utils/decorators.py:34: in wrapper
return f(self, *args, **kwargs)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/docker/api/network.py:174: in prune_networks
return self._result(self._post(url, params=params), True)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/docker/utils/decorators.py:46: in inner
return f(self, *args, **kwargs)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/docker/api/client.py:221: in _post
return self.post(url, **self._set_request_timeout(kwargs))
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/requests/sessions.py:637: in post
return self.request("POST", url, data=data, json=json, **kwargs)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/requests/sessions.py:589: in request
resp = self.send(prep, **send_kwargs)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/requests/sessions.py:703: in send
r = adapter.send(request, **kwargs)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/requests/adapters.py:486: in send
resp = conn.urlopen(
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/urllib3/connectionpool.py:793: in urlopen
response = self._make_request(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <docker.transport.unixconn.UnixHTTPConnectionPool object at 0x7f647f78c670>
conn = <docker.transport.unixconn.UnixHTTPConnection object at 0x7f647f67a8b0>
method = 'POST', url = '/v1.35/networks/prune', body = None
headers = HTTPHeaderDict({'User-Agent': 'docker-sdk-python/3.7.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Length': '0'})
retries = Retry(total=0, connect=None, read=False, redirect=None, status=None)
timeout = Timeout(connect=60, read=60, total=None), chunked = False
response_conn = <docker.transport.unixconn.UnixHTTPConnection object at 0x7f647f67a8b0>
preload_content = False, decode_content = False, enforce_content_length = True
def _make_request(
self,
conn: BaseHTTPConnection,
method: str,
url: str,
body: _TYPE_BODY | None = None,
headers: typing.Mapping[str, str] | None = None,
retries: Retry | None = None,
timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT,
chunked: bool = False,
response_conn: BaseHTTPConnection | None = None,
preload_content: bool = True,
decode_content: bool = True,
enforce_content_length: bool = True,
) -> BaseHTTPResponse:
"""
Perform a request on a given urllib connection object taken from our
pool.
:param conn:
a connection from one of our connection pools
:param method:
HTTP request method (such as GET, POST, PUT, etc.)
:param url:
The URL to perform the request on.
:param body:
Data to send in the request body, either :class:`str`, :class:`bytes`,
an iterable of :class:`str`/:class:`bytes`, or a file-like object.
:param headers:
Dictionary of custom headers to send, such as User-Agent,
If-None-Match, etc. If None, pool headers are used. If provided,
these headers completely replace any pool-specific headers.
:param retries:
Configure the number of retries to allow before raising a
:class:`~urllib3.exceptions.MaxRetryError` exception.
Pass ``None`` to retry until you receive a response. Pass a
:class:`~urllib3.util.retry.Retry` object for fine-grained control
over different types of retries.
Pass an integer number to retry connection errors that many times,
but no other types of errors. Pass zero to never retry.
If ``False``, then retries are disabled and any exception is raised
immediately. Also, instead of raising a MaxRetryError on redirects,
the redirect response will be returned.
:type retries: :class:`~urllib3.util.retry.Retry`, False, or an int.
:param timeout:
If specified, overrides the default timeout for this one
request. It may be a float (in seconds) or an instance of
:class:`urllib3.util.Timeout`.
:param chunked:
If True, urllib3 will send the body using chunked transfer
encoding. Otherwise, urllib3 will send the body using the standard
content-length form. Defaults to False.
:param response_conn:
Set this to ``None`` if you will handle releasing the connection or
set the connection to have the response release it.
:param preload_content:
If True, the response's body will be preloaded during construction.
:param decode_content:
If True, will attempt to decode the body based on the
'content-encoding' header.
:param enforce_content_length:
Enforce content length checking. Body returned by server must match
value of Content-Length header, if present. Otherwise, raise error.
"""
self.num_requests += 1
timeout_obj = self._get_timeout(timeout)
timeout_obj.start_connect()
conn.timeout = Timeout.resolve_default_timeout(timeout_obj.connect_timeout)
try:
# Trigger any extra validation we need to do.
try:
self._validate_conn(conn)
except (SocketTimeout, BaseSSLError) as e:
self._raise_timeout(err=e, url=url, timeout_value=conn.timeout)
raise
# _validate_conn() starts the connection to an HTTPS proxy
# so we need to wrap errors with 'ProxyError' here too.
except (
OSError,
NewConnectionError,
TimeoutError,
BaseSSLError,
CertificateError,
SSLError,
) as e:
new_e: Exception = e
if isinstance(e, (BaseSSLError, CertificateError)):
new_e = SSLError(e)
# If the connection didn't successfully connect to it's proxy
# then there
if isinstance(
new_e, (OSError, NewConnectionError, TimeoutError, SSLError)
) and (conn and conn.proxy and not conn.has_connected_to_proxy):
new_e = _wrap_proxy_error(new_e, conn.proxy.scheme)
raise new_e
# conn.request() calls http.client.*.request, not the method in
# urllib3.request. It also calls makefile (recv) on the socket.
try:
> conn.request(
method,
url,
body=body,
headers=headers,
chunked=chunked,
preload_content=preload_content,
decode_content=decode_content,
enforce_content_length=enforce_content_length,
)
E TypeError: request() got an unexpected keyword argument 'chunked'
body = None
chunked = False
conn = <docker.transport.unixconn.UnixHTTPConnection object at 0x7f647f67a8b0>
decode_content = False
enforce_content_length = True
headers = HTTPHeaderDict({'User-Agent': 'docker-sdk-python/3.7.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Length': '0'})
method = 'POST'
preload_content = False
response_conn = <docker.transport.unixconn.UnixHTTPConnection object at 0x7f647f67a8b0>
retries = Retry(total=0, connect=None, read=False, redirect=None, status=None)
self = <docker.transport.unixconn.UnixHTTPConnectionPool object at 0x7f647f78c670>
timeout = Timeout(connect=60, read=60, total=None)
timeout_obj = Timeout(connect=60, read=60, total=None)
url = '/v1.35/networks/prune'
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/urllib3/connectionpool.py:496: TypeError
Check failure on line 1 in system/indy-node-tests/test_ledger.py
github-actions / test_ledger Test Report
system/indy-node-tests/test_ledger.py.test_send_and_get_nym_positive[TRUSTEE-STEWARD]
test setup failure
Raw output
tp = <class 'TypeError'>, value = None, tb = None
def reraise(tp, value, tb=None):
try:
if value is None:
value = tp()
if value.__traceback__ is not tb:
> raise value.with_traceback(tb)
tb = None
tp = <class 'TypeError'>
value = None
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/six.py:718:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/pytest_asyncio/plugin.py:97: in wrapper
return loop.run_until_complete(setup())
/usr/lib/python3.8/asyncio/base_events.py:616: in run_until_complete
return future.result()
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/pytest_asyncio/plugin.py:78: in setup
res = await gen_obj.__anext__()
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/async_generator/_impl.py:366: in step
return await ANextIter(self._it, start_fn, *args)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/async_generator/_impl.py:197: in __next__
return self._invoke(first_fn, *first_args)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/async_generator/_impl.py:209: in _invoke
result = fn(*args)
system/conftest.py:226: in docker_setup_and_teardown_module
await setup(nodes_num_module)
system/docker_setup.py:167: in setup
main(nodes_num=nodes_num)
system/docker_setup.py:130: in main
network_builder(NETWORK_SUBNET,
system/docker_setup.py:33: in network_builder
client.networks.prune()
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/docker/models/networks.py:214: in prune
return self.client.api.prune_networks(filters=filters)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/docker/utils/decorators.py:34: in wrapper
return f(self, *args, **kwargs)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/docker/api/network.py:174: in prune_networks
return self._result(self._post(url, params=params), True)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/docker/utils/decorators.py:46: in inner
return f(self, *args, **kwargs)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/docker/api/client.py:221: in _post
return self.post(url, **self._set_request_timeout(kwargs))
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/requests/sessions.py:637: in post
return self.request("POST", url, data=data, json=json, **kwargs)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/requests/sessions.py:589: in request
resp = self.send(prep, **send_kwargs)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/requests/sessions.py:703: in send
r = adapter.send(request, **kwargs)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/requests/adapters.py:486: in send
resp = conn.urlopen(
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/urllib3/connectionpool.py:793: in urlopen
response = self._make_request(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <docker.transport.unixconn.UnixHTTPConnectionPool object at 0x7f647f78c670>
conn = <docker.transport.unixconn.UnixHTTPConnection object at 0x7f647f67a8b0>
method = 'POST', url = '/v1.35/networks/prune', body = None
headers = HTTPHeaderDict({'User-Agent': 'docker-sdk-python/3.7.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Length': '0'})
retries = Retry(total=0, connect=None, read=False, redirect=None, status=None)
timeout = Timeout(connect=60, read=60, total=None), chunked = False
response_conn = <docker.transport.unixconn.UnixHTTPConnection object at 0x7f647f67a8b0>
preload_content = False, decode_content = False, enforce_content_length = True
def _make_request(
self,
conn: BaseHTTPConnection,
method: str,
url: str,
body: _TYPE_BODY | None = None,
headers: typing.Mapping[str, str] | None = None,
retries: Retry | None = None,
timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT,
chunked: bool = False,
response_conn: BaseHTTPConnection | None = None,
preload_content: bool = True,
decode_content: bool = True,
enforce_content_length: bool = True,
) -> BaseHTTPResponse:
"""
Perform a request on a given urllib connection object taken from our
pool.
:param conn:
a connection from one of our connection pools
:param method:
HTTP request method (such as GET, POST, PUT, etc.)
:param url:
The URL to perform the request on.
:param body:
Data to send in the request body, either :class:`str`, :class:`bytes`,
an iterable of :class:`str`/:class:`bytes`, or a file-like object.
:param headers:
Dictionary of custom headers to send, such as User-Agent,
If-None-Match, etc. If None, pool headers are used. If provided,
these headers completely replace any pool-specific headers.
:param retries:
Configure the number of retries to allow before raising a
:class:`~urllib3.exceptions.MaxRetryError` exception.
Pass ``None`` to retry until you receive a response. Pass a
:class:`~urllib3.util.retry.Retry` object for fine-grained control
over different types of retries.
Pass an integer number to retry connection errors that many times,
but no other types of errors. Pass zero to never retry.
If ``False``, then retries are disabled and any exception is raised
immediately. Also, instead of raising a MaxRetryError on redirects,
the redirect response will be returned.
:type retries: :class:`~urllib3.util.retry.Retry`, False, or an int.
:param timeout:
If specified, overrides the default timeout for this one
request. It may be a float (in seconds) or an instance of
:class:`urllib3.util.Timeout`.
:param chunked:
If True, urllib3 will send the body using chunked transfer
encoding. Otherwise, urllib3 will send the body using the standard
content-length form. Defaults to False.
:param response_conn:
Set this to ``None`` if you will handle releasing the connection or
set the connection to have the response release it.
:param preload_content:
If True, the response's body will be preloaded during construction.
:param decode_content:
If True, will attempt to decode the body based on the
'content-encoding' header.
:param enforce_content_length:
Enforce content length checking. Body returned by server must match
value of Content-Length header, if present. Otherwise, raise error.
"""
self.num_requests += 1
timeout_obj = self._get_timeout(timeout)
timeout_obj.start_connect()
conn.timeout = Timeout.resolve_default_timeout(timeout_obj.connect_timeout)
try:
# Trigger any extra validation we need to do.
try:
self._validate_conn(conn)
except (SocketTimeout, BaseSSLError) as e:
self._raise_timeout(err=e, url=url, timeout_value=conn.timeout)
raise
# _validate_conn() starts the connection to an HTTPS proxy
# so we need to wrap errors with 'ProxyError' here too.
except (
OSError,
NewConnectionError,
TimeoutError,
BaseSSLError,
CertificateError,
SSLError,
) as e:
new_e: Exception = e
if isinstance(e, (BaseSSLError, CertificateError)):
new_e = SSLError(e)
# If the connection didn't successfully connect to it's proxy
# then there
if isinstance(
new_e, (OSError, NewConnectionError, TimeoutError, SSLError)
) and (conn and conn.proxy and not conn.has_connected_to_proxy):
new_e = _wrap_proxy_error(new_e, conn.proxy.scheme)
raise new_e
# conn.request() calls http.client.*.request, not the method in
# urllib3.request. It also calls makefile (recv) on the socket.
try:
> conn.request(
method,
url,
body=body,
headers=headers,
chunked=chunked,
preload_content=preload_content,
decode_content=decode_content,
enforce_content_length=enforce_content_length,
)
E TypeError: request() got an unexpected keyword argument 'chunked'
body = None
chunked = False
conn = <docker.transport.unixconn.UnixHTTPConnection object at 0x7f647f67a8b0>
decode_content = False
enforce_content_length = True
headers = HTTPHeaderDict({'User-Agent': 'docker-sdk-python/3.7.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Length': '0'})
method = 'POST'
preload_content = False
response_conn = <docker.transport.unixconn.UnixHTTPConnection object at 0x7f647f67a8b0>
retries = Retry(total=0, connect=None, read=False, redirect=None, status=None)
self = <docker.transport.unixconn.UnixHTTPConnectionPool object at 0x7f647f78c670>
timeout = Timeout(connect=60, read=60, total=None)
timeout_obj = Timeout(connect=60, read=60, total=None)
url = '/v1.35/networks/prune'
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/urllib3/connectionpool.py:496: TypeError
Check failure on line 1 in system/indy-node-tests/test_ledger.py
github-actions / test_ledger Test Report
system/indy-node-tests/test_ledger.py.test_send_and_get_nym_positive[TRUSTEE-TRUST_ANCHOR]
test setup failure
Raw output
tp = <class 'TypeError'>, value = None, tb = None
def reraise(tp, value, tb=None):
try:
if value is None:
value = tp()
if value.__traceback__ is not tb:
> raise value.with_traceback(tb)
tb = None
tp = <class 'TypeError'>
value = None
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/six.py:718:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/pytest_asyncio/plugin.py:97: in wrapper
return loop.run_until_complete(setup())
/usr/lib/python3.8/asyncio/base_events.py:616: in run_until_complete
return future.result()
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/pytest_asyncio/plugin.py:78: in setup
res = await gen_obj.__anext__()
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/async_generator/_impl.py:366: in step
return await ANextIter(self._it, start_fn, *args)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/async_generator/_impl.py:197: in __next__
return self._invoke(first_fn, *first_args)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/async_generator/_impl.py:209: in _invoke
result = fn(*args)
system/conftest.py:226: in docker_setup_and_teardown_module
await setup(nodes_num_module)
system/docker_setup.py:167: in setup
main(nodes_num=nodes_num)
system/docker_setup.py:130: in main
network_builder(NETWORK_SUBNET,
system/docker_setup.py:33: in network_builder
client.networks.prune()
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/docker/models/networks.py:214: in prune
return self.client.api.prune_networks(filters=filters)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/docker/utils/decorators.py:34: in wrapper
return f(self, *args, **kwargs)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/docker/api/network.py:174: in prune_networks
return self._result(self._post(url, params=params), True)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/docker/utils/decorators.py:46: in inner
return f(self, *args, **kwargs)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/docker/api/client.py:221: in _post
return self.post(url, **self._set_request_timeout(kwargs))
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/requests/sessions.py:637: in post
return self.request("POST", url, data=data, json=json, **kwargs)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/requests/sessions.py:589: in request
resp = self.send(prep, **send_kwargs)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/requests/sessions.py:703: in send
r = adapter.send(request, **kwargs)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/requests/adapters.py:486: in send
resp = conn.urlopen(
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/urllib3/connectionpool.py:793: in urlopen
response = self._make_request(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <docker.transport.unixconn.UnixHTTPConnectionPool object at 0x7f647f78c670>
conn = <docker.transport.unixconn.UnixHTTPConnection object at 0x7f647f67a8b0>
method = 'POST', url = '/v1.35/networks/prune', body = None
headers = HTTPHeaderDict({'User-Agent': 'docker-sdk-python/3.7.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Length': '0'})
retries = Retry(total=0, connect=None, read=False, redirect=None, status=None)
timeout = Timeout(connect=60, read=60, total=None), chunked = False
response_conn = <docker.transport.unixconn.UnixHTTPConnection object at 0x7f647f67a8b0>
preload_content = False, decode_content = False, enforce_content_length = True
def _make_request(
self,
conn: BaseHTTPConnection,
method: str,
url: str,
body: _TYPE_BODY | None = None,
headers: typing.Mapping[str, str] | None = None,
retries: Retry | None = None,
timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT,
chunked: bool = False,
response_conn: BaseHTTPConnection | None = None,
preload_content: bool = True,
decode_content: bool = True,
enforce_content_length: bool = True,
) -> BaseHTTPResponse:
"""
Perform a request on a given urllib connection object taken from our
pool.
:param conn:
a connection from one of our connection pools
:param method:
HTTP request method (such as GET, POST, PUT, etc.)
:param url:
The URL to perform the request on.
:param body:
Data to send in the request body, either :class:`str`, :class:`bytes`,
an iterable of :class:`str`/:class:`bytes`, or a file-like object.
:param headers:
Dictionary of custom headers to send, such as User-Agent,
If-None-Match, etc. If None, pool headers are used. If provided,
these headers completely replace any pool-specific headers.
:param retries:
Configure the number of retries to allow before raising a
:class:`~urllib3.exceptions.MaxRetryError` exception.
Pass ``None`` to retry until you receive a response. Pass a
:class:`~urllib3.util.retry.Retry` object for fine-grained control
over different types of retries.
Pass an integer number to retry connection errors that many times,
but no other types of errors. Pass zero to never retry.
If ``False``, then retries are disabled and any exception is raised
immediately. Also, instead of raising a MaxRetryError on redirects,
the redirect response will be returned.
:type retries: :class:`~urllib3.util.retry.Retry`, False, or an int.
:param timeout:
If specified, overrides the default timeout for this one
request. It may be a float (in seconds) or an instance of
:class:`urllib3.util.Timeout`.
:param chunked:
If True, urllib3 will send the body using chunked transfer
encoding. Otherwise, urllib3 will send the body using the standard
content-length form. Defaults to False.
:param response_conn:
Set this to ``None`` if you will handle releasing the connection or
set the connection to have the response release it.
:param preload_content:
If True, the response's body will be preloaded during construction.
:param decode_content:
If True, will attempt to decode the body based on the
'content-encoding' header.
:param enforce_content_length:
Enforce content length checking. Body returned by server must match
value of Content-Length header, if present. Otherwise, raise error.
"""
self.num_requests += 1
timeout_obj = self._get_timeout(timeout)
timeout_obj.start_connect()
conn.timeout = Timeout.resolve_default_timeout(timeout_obj.connect_timeout)
try:
# Trigger any extra validation we need to do.
try:
self._validate_conn(conn)
except (SocketTimeout, BaseSSLError) as e:
self._raise_timeout(err=e, url=url, timeout_value=conn.timeout)
raise
# _validate_conn() starts the connection to an HTTPS proxy
# so we need to wrap errors with 'ProxyError' here too.
except (
OSError,
NewConnectionError,
TimeoutError,
BaseSSLError,
CertificateError,
SSLError,
) as e:
new_e: Exception = e
if isinstance(e, (BaseSSLError, CertificateError)):
new_e = SSLError(e)
# If the connection didn't successfully connect to it's proxy
# then there
if isinstance(
new_e, (OSError, NewConnectionError, TimeoutError, SSLError)
) and (conn and conn.proxy and not conn.has_connected_to_proxy):
new_e = _wrap_proxy_error(new_e, conn.proxy.scheme)
raise new_e
# conn.request() calls http.client.*.request, not the method in
# urllib3.request. It also calls makefile (recv) on the socket.
try:
> conn.request(
method,
url,
body=body,
headers=headers,
chunked=chunked,
preload_content=preload_content,
decode_content=decode_content,
enforce_content_length=enforce_content_length,
)
E TypeError: request() got an unexpected keyword argument 'chunked'
body = None
chunked = False
conn = <docker.transport.unixconn.UnixHTTPConnection object at 0x7f647f67a8b0>
decode_content = False
enforce_content_length = True
headers = HTTPHeaderDict({'User-Agent': 'docker-sdk-python/3.7.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Length': '0'})
method = 'POST'
preload_content = False
response_conn = <docker.transport.unixconn.UnixHTTPConnection object at 0x7f647f67a8b0>
retries = Retry(total=0, connect=None, read=False, redirect=None, status=None)
self = <docker.transport.unixconn.UnixHTTPConnectionPool object at 0x7f647f78c670>
timeout = Timeout(connect=60, read=60, total=None)
timeout_obj = Timeout(connect=60, read=60, total=None)
url = '/v1.35/networks/prune'
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/urllib3/connectionpool.py:496: TypeError
Check failure on line 1 in system/indy-node-tests/test_ledger.py
github-actions / test_ledger Test Report
system/indy-node-tests/test_ledger.py.test_send_and_get_nym_positive[STEWARD-TRUSTEE]
test setup failure
Raw output
tp = <class 'TypeError'>, value = None, tb = None
def reraise(tp, value, tb=None):
try:
if value is None:
value = tp()
if value.__traceback__ is not tb:
> raise value.with_traceback(tb)
tb = None
tp = <class 'TypeError'>
value = None
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/six.py:718:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/pytest_asyncio/plugin.py:97: in wrapper
return loop.run_until_complete(setup())
/usr/lib/python3.8/asyncio/base_events.py:616: in run_until_complete
return future.result()
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/pytest_asyncio/plugin.py:78: in setup
res = await gen_obj.__anext__()
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/async_generator/_impl.py:366: in step
return await ANextIter(self._it, start_fn, *args)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/async_generator/_impl.py:197: in __next__
return self._invoke(first_fn, *first_args)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/async_generator/_impl.py:209: in _invoke
result = fn(*args)
system/conftest.py:226: in docker_setup_and_teardown_module
await setup(nodes_num_module)
system/docker_setup.py:167: in setup
main(nodes_num=nodes_num)
system/docker_setup.py:130: in main
network_builder(NETWORK_SUBNET,
system/docker_setup.py:33: in network_builder
client.networks.prune()
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/docker/models/networks.py:214: in prune
return self.client.api.prune_networks(filters=filters)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/docker/utils/decorators.py:34: in wrapper
return f(self, *args, **kwargs)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/docker/api/network.py:174: in prune_networks
return self._result(self._post(url, params=params), True)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/docker/utils/decorators.py:46: in inner
return f(self, *args, **kwargs)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/docker/api/client.py:221: in _post
return self.post(url, **self._set_request_timeout(kwargs))
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/requests/sessions.py:637: in post
return self.request("POST", url, data=data, json=json, **kwargs)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/requests/sessions.py:589: in request
resp = self.send(prep, **send_kwargs)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/requests/sessions.py:703: in send
r = adapter.send(request, **kwargs)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/requests/adapters.py:486: in send
resp = conn.urlopen(
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/urllib3/connectionpool.py:793: in urlopen
response = self._make_request(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <docker.transport.unixconn.UnixHTTPConnectionPool object at 0x7f647f78c670>
conn = <docker.transport.unixconn.UnixHTTPConnection object at 0x7f647f67a8b0>
method = 'POST', url = '/v1.35/networks/prune', body = None
headers = HTTPHeaderDict({'User-Agent': 'docker-sdk-python/3.7.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Length': '0'})
retries = Retry(total=0, connect=None, read=False, redirect=None, status=None)
timeout = Timeout(connect=60, read=60, total=None), chunked = False
response_conn = <docker.transport.unixconn.UnixHTTPConnection object at 0x7f647f67a8b0>
preload_content = False, decode_content = False, enforce_content_length = True
def _make_request(
self,
conn: BaseHTTPConnection,
method: str,
url: str,
body: _TYPE_BODY | None = None,
headers: typing.Mapping[str, str] | None = None,
retries: Retry | None = None,
timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT,
chunked: bool = False,
response_conn: BaseHTTPConnection | None = None,
preload_content: bool = True,
decode_content: bool = True,
enforce_content_length: bool = True,
) -> BaseHTTPResponse:
"""
Perform a request on a given urllib connection object taken from our
pool.
:param conn:
a connection from one of our connection pools
:param method:
HTTP request method (such as GET, POST, PUT, etc.)
:param url:
The URL to perform the request on.
:param body:
Data to send in the request body, either :class:`str`, :class:`bytes`,
an iterable of :class:`str`/:class:`bytes`, or a file-like object.
:param headers:
Dictionary of custom headers to send, such as User-Agent,
If-None-Match, etc. If None, pool headers are used. If provided,
these headers completely replace any pool-specific headers.
:param retries:
Configure the number of retries to allow before raising a
:class:`~urllib3.exceptions.MaxRetryError` exception.
Pass ``None`` to retry until you receive a response. Pass a
:class:`~urllib3.util.retry.Retry` object for fine-grained control
over different types of retries.
Pass an integer number to retry connection errors that many times,
but no other types of errors. Pass zero to never retry.
If ``False``, then retries are disabled and any exception is raised
immediately. Also, instead of raising a MaxRetryError on redirects,
the redirect response will be returned.
:type retries: :class:`~urllib3.util.retry.Retry`, False, or an int.
:param timeout:
If specified, overrides the default timeout for this one
request. It may be a float (in seconds) or an instance of
:class:`urllib3.util.Timeout`.
:param chunked:
If True, urllib3 will send the body using chunked transfer
encoding. Otherwise, urllib3 will send the body using the standard
content-length form. Defaults to False.
:param response_conn:
Set this to ``None`` if you will handle releasing the connection or
set the connection to have the response release it.
:param preload_content:
If True, the response's body will be preloaded during construction.
:param decode_content:
If True, will attempt to decode the body based on the
'content-encoding' header.
:param enforce_content_length:
Enforce content length checking. Body returned by server must match
value of Content-Length header, if present. Otherwise, raise error.
"""
self.num_requests += 1
timeout_obj = self._get_timeout(timeout)
timeout_obj.start_connect()
conn.timeout = Timeout.resolve_default_timeout(timeout_obj.connect_timeout)
try:
# Trigger any extra validation we need to do.
try:
self._validate_conn(conn)
except (SocketTimeout, BaseSSLError) as e:
self._raise_timeout(err=e, url=url, timeout_value=conn.timeout)
raise
# _validate_conn() starts the connection to an HTTPS proxy
# so we need to wrap errors with 'ProxyError' here too.
except (
OSError,
NewConnectionError,
TimeoutError,
BaseSSLError,
CertificateError,
SSLError,
) as e:
new_e: Exception = e
if isinstance(e, (BaseSSLError, CertificateError)):
new_e = SSLError(e)
# If the connection didn't successfully connect to it's proxy
# then there
if isinstance(
new_e, (OSError, NewConnectionError, TimeoutError, SSLError)
) and (conn and conn.proxy and not conn.has_connected_to_proxy):
new_e = _wrap_proxy_error(new_e, conn.proxy.scheme)
raise new_e
# conn.request() calls http.client.*.request, not the method in
# urllib3.request. It also calls makefile (recv) on the socket.
try:
> conn.request(
method,
url,
body=body,
headers=headers,
chunked=chunked,
preload_content=preload_content,
decode_content=decode_content,
enforce_content_length=enforce_content_length,
)
E TypeError: request() got an unexpected keyword argument 'chunked'
body = None
chunked = False
conn = <docker.transport.unixconn.UnixHTTPConnection object at 0x7f647f67a8b0>
decode_content = False
enforce_content_length = True
headers = HTTPHeaderDict({'User-Agent': 'docker-sdk-python/3.7.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Length': '0'})
method = 'POST'
preload_content = False
response_conn = <docker.transport.unixconn.UnixHTTPConnection object at 0x7f647f67a8b0>
retries = Retry(total=0, connect=None, read=False, redirect=None, status=None)
self = <docker.transport.unixconn.UnixHTTPConnectionPool object at 0x7f647f78c670>
timeout = Timeout(connect=60, read=60, total=None)
timeout_obj = Timeout(connect=60, read=60, total=None)
url = '/v1.35/networks/prune'
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/urllib3/connectionpool.py:496: TypeError
Check failure on line 1 in system/indy-node-tests/test_ledger.py
github-actions / test_ledger Test Report
system/indy-node-tests/test_ledger.py.test_send_and_get_nym_positive[STEWARD-STEWARD]
test setup failure
Raw output
tp = <class 'TypeError'>, value = None, tb = None
def reraise(tp, value, tb=None):
try:
if value is None:
value = tp()
if value.__traceback__ is not tb:
> raise value.with_traceback(tb)
tb = None
tp = <class 'TypeError'>
value = None
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/six.py:718:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/pytest_asyncio/plugin.py:97: in wrapper
return loop.run_until_complete(setup())
/usr/lib/python3.8/asyncio/base_events.py:616: in run_until_complete
return future.result()
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/pytest_asyncio/plugin.py:78: in setup
res = await gen_obj.__anext__()
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/async_generator/_impl.py:366: in step
return await ANextIter(self._it, start_fn, *args)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/async_generator/_impl.py:197: in __next__
return self._invoke(first_fn, *first_args)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/async_generator/_impl.py:209: in _invoke
result = fn(*args)
system/conftest.py:226: in docker_setup_and_teardown_module
await setup(nodes_num_module)
system/docker_setup.py:167: in setup
main(nodes_num=nodes_num)
system/docker_setup.py:130: in main
network_builder(NETWORK_SUBNET,
system/docker_setup.py:33: in network_builder
client.networks.prune()
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/docker/models/networks.py:214: in prune
return self.client.api.prune_networks(filters=filters)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/docker/utils/decorators.py:34: in wrapper
return f(self, *args, **kwargs)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/docker/api/network.py:174: in prune_networks
return self._result(self._post(url, params=params), True)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/docker/utils/decorators.py:46: in inner
return f(self, *args, **kwargs)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/docker/api/client.py:221: in _post
return self.post(url, **self._set_request_timeout(kwargs))
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/requests/sessions.py:637: in post
return self.request("POST", url, data=data, json=json, **kwargs)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/requests/sessions.py:589: in request
resp = self.send(prep, **send_kwargs)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/requests/sessions.py:703: in send
r = adapter.send(request, **kwargs)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/requests/adapters.py:486: in send
resp = conn.urlopen(
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/urllib3/connectionpool.py:793: in urlopen
response = self._make_request(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <docker.transport.unixconn.UnixHTTPConnectionPool object at 0x7f647f78c670>
conn = <docker.transport.unixconn.UnixHTTPConnection object at 0x7f647f67a8b0>
method = 'POST', url = '/v1.35/networks/prune', body = None
headers = HTTPHeaderDict({'User-Agent': 'docker-sdk-python/3.7.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Length': '0'})
retries = Retry(total=0, connect=None, read=False, redirect=None, status=None)
timeout = Timeout(connect=60, read=60, total=None), chunked = False
response_conn = <docker.transport.unixconn.UnixHTTPConnection object at 0x7f647f67a8b0>
preload_content = False, decode_content = False, enforce_content_length = True
def _make_request(
self,
conn: BaseHTTPConnection,
method: str,
url: str,
body: _TYPE_BODY | None = None,
headers: typing.Mapping[str, str] | None = None,
retries: Retry | None = None,
timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT,
chunked: bool = False,
response_conn: BaseHTTPConnection | None = None,
preload_content: bool = True,
decode_content: bool = True,
enforce_content_length: bool = True,
) -> BaseHTTPResponse:
"""
Perform a request on a given urllib connection object taken from our
pool.
:param conn:
a connection from one of our connection pools
:param method:
HTTP request method (such as GET, POST, PUT, etc.)
:param url:
The URL to perform the request on.
:param body:
Data to send in the request body, either :class:`str`, :class:`bytes`,
an iterable of :class:`str`/:class:`bytes`, or a file-like object.
:param headers:
Dictionary of custom headers to send, such as User-Agent,
If-None-Match, etc. If None, pool headers are used. If provided,
these headers completely replace any pool-specific headers.
:param retries:
Configure the number of retries to allow before raising a
:class:`~urllib3.exceptions.MaxRetryError` exception.
Pass ``None`` to retry until you receive a response. Pass a
:class:`~urllib3.util.retry.Retry` object for fine-grained control
over different types of retries.
Pass an integer number to retry connection errors that many times,
but no other types of errors. Pass zero to never retry.
If ``False``, then retries are disabled and any exception is raised
immediately. Also, instead of raising a MaxRetryError on redirects,
the redirect response will be returned.
:type retries: :class:`~urllib3.util.retry.Retry`, False, or an int.
:param timeout:
If specified, overrides the default timeout for this one
request. It may be a float (in seconds) or an instance of
:class:`urllib3.util.Timeout`.
:param chunked:
If True, urllib3 will send the body using chunked transfer
encoding. Otherwise, urllib3 will send the body using the standard
content-length form. Defaults to False.
:param response_conn:
Set this to ``None`` if you will handle releasing the connection or
set the connection to have the response release it.
:param preload_content:
If True, the response's body will be preloaded during construction.
:param decode_content:
If True, will attempt to decode the body based on the
'content-encoding' header.
:param enforce_content_length:
Enforce content length checking. Body returned by server must match
value of Content-Length header, if present. Otherwise, raise error.
"""
self.num_requests += 1
timeout_obj = self._get_timeout(timeout)
timeout_obj.start_connect()
conn.timeout = Timeout.resolve_default_timeout(timeout_obj.connect_timeout)
try:
# Trigger any extra validation we need to do.
try:
self._validate_conn(conn)
except (SocketTimeout, BaseSSLError) as e:
self._raise_timeout(err=e, url=url, timeout_value=conn.timeout)
raise
# _validate_conn() starts the connection to an HTTPS proxy
# so we need to wrap errors with 'ProxyError' here too.
except (
OSError,
NewConnectionError,
TimeoutError,
BaseSSLError,
CertificateError,
SSLError,
) as e:
new_e: Exception = e
if isinstance(e, (BaseSSLError, CertificateError)):
new_e = SSLError(e)
# If the connection didn't successfully connect to it's proxy
# then there
if isinstance(
new_e, (OSError, NewConnectionError, TimeoutError, SSLError)
) and (conn and conn.proxy and not conn.has_connected_to_proxy):
new_e = _wrap_proxy_error(new_e, conn.proxy.scheme)
raise new_e
# conn.request() calls http.client.*.request, not the method in
# urllib3.request. It also calls makefile (recv) on the socket.
try:
> conn.request(
method,
url,
body=body,
headers=headers,
chunked=chunked,
preload_content=preload_content,
decode_content=decode_content,
enforce_content_length=enforce_content_length,
)
E TypeError: request() got an unexpected keyword argument 'chunked'
body = None
chunked = False
conn = <docker.transport.unixconn.UnixHTTPConnection object at 0x7f647f67a8b0>
decode_content = False
enforce_content_length = True
headers = HTTPHeaderDict({'User-Agent': 'docker-sdk-python/3.7.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Length': '0'})
method = 'POST'
preload_content = False
response_conn = <docker.transport.unixconn.UnixHTTPConnection object at 0x7f647f67a8b0>
retries = Retry(total=0, connect=None, read=False, redirect=None, status=None)
self = <docker.transport.unixconn.UnixHTTPConnectionPool object at 0x7f647f78c670>
timeout = Timeout(connect=60, read=60, total=None)
timeout_obj = Timeout(connect=60, read=60, total=None)
url = '/v1.35/networks/prune'
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/urllib3/connectionpool.py:496: TypeError
Check failure on line 1 in system/indy-node-tests/test_ledger.py
github-actions / test_ledger Test Report
system/indy-node-tests/test_ledger.py.test_send_and_get_nym_positive[STEWARD-TRUST_ANCHOR]
test setup failure
Raw output
tp = <class 'TypeError'>, value = None, tb = None
def reraise(tp, value, tb=None):
try:
if value is None:
value = tp()
if value.__traceback__ is not tb:
> raise value.with_traceback(tb)
tb = None
tp = <class 'TypeError'>
value = None
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/six.py:718:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/pytest_asyncio/plugin.py:97: in wrapper
return loop.run_until_complete(setup())
/usr/lib/python3.8/asyncio/base_events.py:616: in run_until_complete
return future.result()
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/pytest_asyncio/plugin.py:78: in setup
res = await gen_obj.__anext__()
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/async_generator/_impl.py:366: in step
return await ANextIter(self._it, start_fn, *args)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/async_generator/_impl.py:197: in __next__
return self._invoke(first_fn, *first_args)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/async_generator/_impl.py:209: in _invoke
result = fn(*args)
system/conftest.py:226: in docker_setup_and_teardown_module
await setup(nodes_num_module)
system/docker_setup.py:167: in setup
main(nodes_num=nodes_num)
system/docker_setup.py:130: in main
network_builder(NETWORK_SUBNET,
system/docker_setup.py:33: in network_builder
client.networks.prune()
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/docker/models/networks.py:214: in prune
return self.client.api.prune_networks(filters=filters)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/docker/utils/decorators.py:34: in wrapper
return f(self, *args, **kwargs)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/docker/api/network.py:174: in prune_networks
return self._result(self._post(url, params=params), True)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/docker/utils/decorators.py:46: in inner
return f(self, *args, **kwargs)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/docker/api/client.py:221: in _post
return self.post(url, **self._set_request_timeout(kwargs))
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/requests/sessions.py:637: in post
return self.request("POST", url, data=data, json=json, **kwargs)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/requests/sessions.py:589: in request
resp = self.send(prep, **send_kwargs)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/requests/sessions.py:703: in send
r = adapter.send(request, **kwargs)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/requests/adapters.py:486: in send
resp = conn.urlopen(
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/urllib3/connectionpool.py:793: in urlopen
response = self._make_request(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <docker.transport.unixconn.UnixHTTPConnectionPool object at 0x7f647f78c670>
conn = <docker.transport.unixconn.UnixHTTPConnection object at 0x7f647f67a8b0>
method = 'POST', url = '/v1.35/networks/prune', body = None
headers = HTTPHeaderDict({'User-Agent': 'docker-sdk-python/3.7.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Length': '0'})
retries = Retry(total=0, connect=None, read=False, redirect=None, status=None)
timeout = Timeout(connect=60, read=60, total=None), chunked = False
response_conn = <docker.transport.unixconn.UnixHTTPConnection object at 0x7f647f67a8b0>
preload_content = False, decode_content = False, enforce_content_length = True
def _make_request(
self,
conn: BaseHTTPConnection,
method: str,
url: str,
body: _TYPE_BODY | None = None,
headers: typing.Mapping[str, str] | None = None,
retries: Retry | None = None,
timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT,
chunked: bool = False,
response_conn: BaseHTTPConnection | None = None,
preload_content: bool = True,
decode_content: bool = True,
enforce_content_length: bool = True,
) -> BaseHTTPResponse:
"""
Perform a request on a given urllib connection object taken from our
pool.
:param conn:
a connection from one of our connection pools
:param method:
HTTP request method (such as GET, POST, PUT, etc.)
:param url:
The URL to perform the request on.
:param body:
Data to send in the request body, either :class:`str`, :class:`bytes`,
an iterable of :class:`str`/:class:`bytes`, or a file-like object.
:param headers:
Dictionary of custom headers to send, such as User-Agent,
If-None-Match, etc. If None, pool headers are used. If provided,
these headers completely replace any pool-specific headers.
:param retries:
Configure the number of retries to allow before raising a
:class:`~urllib3.exceptions.MaxRetryError` exception.
Pass ``None`` to retry until you receive a response. Pass a
:class:`~urllib3.util.retry.Retry` object for fine-grained control
over different types of retries.
Pass an integer number to retry connection errors that many times,
but no other types of errors. Pass zero to never retry.
If ``False``, then retries are disabled and any exception is raised
immediately. Also, instead of raising a MaxRetryError on redirects,
the redirect response will be returned.
:type retries: :class:`~urllib3.util.retry.Retry`, False, or an int.
:param timeout:
If specified, overrides the default timeout for this one
request. It may be a float (in seconds) or an instance of
:class:`urllib3.util.Timeout`.
:param chunked:
If True, urllib3 will send the body using chunked transfer
encoding. Otherwise, urllib3 will send the body using the standard
content-length form. Defaults to False.
:param response_conn:
Set this to ``None`` if you will handle releasing the connection or
set the connection to have the response release it.
:param preload_content:
If True, the response's body will be preloaded during construction.
:param decode_content:
If True, will attempt to decode the body based on the
'content-encoding' header.
:param enforce_content_length:
Enforce content length checking. Body returned by server must match
value of Content-Length header, if present. Otherwise, raise error.
"""
self.num_requests += 1
timeout_obj = self._get_timeout(timeout)
timeout_obj.start_connect()
conn.timeout = Timeout.resolve_default_timeout(timeout_obj.connect_timeout)
try:
# Trigger any extra validation we need to do.
try:
self._validate_conn(conn)
except (SocketTimeout, BaseSSLError) as e:
self._raise_timeout(err=e, url=url, timeout_value=conn.timeout)
raise
# _validate_conn() starts the connection to an HTTPS proxy
# so we need to wrap errors with 'ProxyError' here too.
except (
OSError,
NewConnectionError,
TimeoutError,
BaseSSLError,
CertificateError,
SSLError,
) as e:
new_e: Exception = e
if isinstance(e, (BaseSSLError, CertificateError)):
new_e = SSLError(e)
# If the connection didn't successfully connect to it's proxy
# then there
if isinstance(
new_e, (OSError, NewConnectionError, TimeoutError, SSLError)
) and (conn and conn.proxy and not conn.has_connected_to_proxy):
new_e = _wrap_proxy_error(new_e, conn.proxy.scheme)
raise new_e
# conn.request() calls http.client.*.request, not the method in
# urllib3.request. It also calls makefile (recv) on the socket.
try:
> conn.request(
method,
url,
body=body,
headers=headers,
chunked=chunked,
preload_content=preload_content,
decode_content=decode_content,
enforce_content_length=enforce_content_length,
)
E TypeError: request() got an unexpected keyword argument 'chunked'
body = None
chunked = False
conn = <docker.transport.unixconn.UnixHTTPConnection object at 0x7f647f67a8b0>
decode_content = False
enforce_content_length = True
headers = HTTPHeaderDict({'User-Agent': 'docker-sdk-python/3.7.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Length': '0'})
method = 'POST'
preload_content = False
response_conn = <docker.transport.unixconn.UnixHTTPConnection object at 0x7f647f67a8b0>
retries = Retry(total=0, connect=None, read=False, redirect=None, status=None)
self = <docker.transport.unixconn.UnixHTTPConnectionPool object at 0x7f647f78c670>
timeout = Timeout(connect=60, read=60, total=None)
timeout_obj = Timeout(connect=60, read=60, total=None)
url = '/v1.35/networks/prune'
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/urllib3/connectionpool.py:496: TypeError
Check failure on line 1 in system/indy-node-tests/test_ledger.py
github-actions / test_ledger Test Report
system/indy-node-tests/test_ledger.py.test_send_and_get_nym_positive[TRUST_ANCHOR-TRUSTEE]
test setup failure
Raw output
tp = <class 'TypeError'>, value = None, tb = None
def reraise(tp, value, tb=None):
try:
if value is None:
value = tp()
if value.__traceback__ is not tb:
> raise value.with_traceback(tb)
tb = None
tp = <class 'TypeError'>
value = None
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/six.py:718:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/pytest_asyncio/plugin.py:97: in wrapper
return loop.run_until_complete(setup())
/usr/lib/python3.8/asyncio/base_events.py:616: in run_until_complete
return future.result()
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/pytest_asyncio/plugin.py:78: in setup
res = await gen_obj.__anext__()
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/async_generator/_impl.py:366: in step
return await ANextIter(self._it, start_fn, *args)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/async_generator/_impl.py:197: in __next__
return self._invoke(first_fn, *first_args)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/async_generator/_impl.py:209: in _invoke
result = fn(*args)
system/conftest.py:226: in docker_setup_and_teardown_module
await setup(nodes_num_module)
system/docker_setup.py:167: in setup
main(nodes_num=nodes_num)
system/docker_setup.py:130: in main
network_builder(NETWORK_SUBNET,
system/docker_setup.py:33: in network_builder
client.networks.prune()
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/docker/models/networks.py:214: in prune
return self.client.api.prune_networks(filters=filters)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/docker/utils/decorators.py:34: in wrapper
return f(self, *args, **kwargs)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/docker/api/network.py:174: in prune_networks
return self._result(self._post(url, params=params), True)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/docker/utils/decorators.py:46: in inner
return f(self, *args, **kwargs)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/docker/api/client.py:221: in _post
return self.post(url, **self._set_request_timeout(kwargs))
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/requests/sessions.py:637: in post
return self.request("POST", url, data=data, json=json, **kwargs)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/requests/sessions.py:589: in request
resp = self.send(prep, **send_kwargs)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/requests/sessions.py:703: in send
r = adapter.send(request, **kwargs)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/requests/adapters.py:486: in send
resp = conn.urlopen(
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/urllib3/connectionpool.py:793: in urlopen
response = self._make_request(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <docker.transport.unixconn.UnixHTTPConnectionPool object at 0x7f647f78c670>
conn = <docker.transport.unixconn.UnixHTTPConnection object at 0x7f647f67a8b0>
method = 'POST', url = '/v1.35/networks/prune', body = None
headers = HTTPHeaderDict({'User-Agent': 'docker-sdk-python/3.7.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Length': '0'})
retries = Retry(total=0, connect=None, read=False, redirect=None, status=None)
timeout = Timeout(connect=60, read=60, total=None), chunked = False
response_conn = <docker.transport.unixconn.UnixHTTPConnection object at 0x7f647f67a8b0>
preload_content = False, decode_content = False, enforce_content_length = True
def _make_request(
self,
conn: BaseHTTPConnection,
method: str,
url: str,
body: _TYPE_BODY | None = None,
headers: typing.Mapping[str, str] | None = None,
retries: Retry | None = None,
timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT,
chunked: bool = False,
response_conn: BaseHTTPConnection | None = None,
preload_content: bool = True,
decode_content: bool = True,
enforce_content_length: bool = True,
) -> BaseHTTPResponse:
"""
Perform a request on a given urllib connection object taken from our
pool.
:param conn:
a connection from one of our connection pools
:param method:
HTTP request method (such as GET, POST, PUT, etc.)
:param url:
The URL to perform the request on.
:param body:
Data to send in the request body, either :class:`str`, :class:`bytes`,
an iterable of :class:`str`/:class:`bytes`, or a file-like object.
:param headers:
Dictionary of custom headers to send, such as User-Agent,
If-None-Match, etc. If None, pool headers are used. If provided,
these headers completely replace any pool-specific headers.
:param retries:
Configure the number of retries to allow before raising a
:class:`~urllib3.exceptions.MaxRetryError` exception.
Pass ``None`` to retry until you receive a response. Pass a
:class:`~urllib3.util.retry.Retry` object for fine-grained control
over different types of retries.
Pass an integer number to retry connection errors that many times,
but no other types of errors. Pass zero to never retry.
If ``False``, then retries are disabled and any exception is raised
immediately. Also, instead of raising a MaxRetryError on redirects,
the redirect response will be returned.
:type retries: :class:`~urllib3.util.retry.Retry`, False, or an int.
:param timeout:
If specified, overrides the default timeout for this one
request. It may be a float (in seconds) or an instance of
:class:`urllib3.util.Timeout`.
:param chunked:
If True, urllib3 will send the body using chunked transfer
encoding. Otherwise, urllib3 will send the body using the standard
content-length form. Defaults to False.
:param response_conn:
Set this to ``None`` if you will handle releasing the connection or
set the connection to have the response release it.
:param preload_content:
If True, the response's body will be preloaded during construction.
:param decode_content:
If True, will attempt to decode the body based on the
'content-encoding' header.
:param enforce_content_length:
Enforce content length checking. Body returned by server must match
value of Content-Length header, if present. Otherwise, raise error.
"""
self.num_requests += 1
timeout_obj = self._get_timeout(timeout)
timeout_obj.start_connect()
conn.timeout = Timeout.resolve_default_timeout(timeout_obj.connect_timeout)
try:
# Trigger any extra validation we need to do.
try:
self._validate_conn(conn)
except (SocketTimeout, BaseSSLError) as e:
self._raise_timeout(err=e, url=url, timeout_value=conn.timeout)
raise
# _validate_conn() starts the connection to an HTTPS proxy
# so we need to wrap errors with 'ProxyError' here too.
except (
OSError,
NewConnectionError,
TimeoutError,
BaseSSLError,
CertificateError,
SSLError,
) as e:
new_e: Exception = e
if isinstance(e, (BaseSSLError, CertificateError)):
new_e = SSLError(e)
# If the connection didn't successfully connect to it's proxy
# then there
if isinstance(
new_e, (OSError, NewConnectionError, TimeoutError, SSLError)
) and (conn and conn.proxy and not conn.has_connected_to_proxy):
new_e = _wrap_proxy_error(new_e, conn.proxy.scheme)
raise new_e
# conn.request() calls http.client.*.request, not the method in
# urllib3.request. It also calls makefile (recv) on the socket.
try:
> conn.request(
method,
url,
body=body,
headers=headers,
chunked=chunked,
preload_content=preload_content,
decode_content=decode_content,
enforce_content_length=enforce_content_length,
)
E TypeError: request() got an unexpected keyword argument 'chunked'
body = None
chunked = False
conn = <docker.transport.unixconn.UnixHTTPConnection object at 0x7f647f67a8b0>
decode_content = False
enforce_content_length = True
headers = HTTPHeaderDict({'User-Agent': 'docker-sdk-python/3.7.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Length': '0'})
method = 'POST'
preload_content = False
response_conn = <docker.transport.unixconn.UnixHTTPConnection object at 0x7f647f67a8b0>
retries = Retry(total=0, connect=None, read=False, redirect=None, status=None)
self = <docker.transport.unixconn.UnixHTTPConnectionPool object at 0x7f647f78c670>
timeout = Timeout(connect=60, read=60, total=None)
timeout_obj = Timeout(connect=60, read=60, total=None)
url = '/v1.35/networks/prune'
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/urllib3/connectionpool.py:496: TypeError
Check failure on line 1 in system/indy-node-tests/test_ledger.py
github-actions / test_ledger Test Report
system/indy-node-tests/test_ledger.py.test_send_and_get_nym_positive[TRUST_ANCHOR-STEWARD]
test setup failure
Raw output
tp = <class 'TypeError'>, value = None, tb = None
def reraise(tp, value, tb=None):
try:
if value is None:
value = tp()
if value.__traceback__ is not tb:
> raise value.with_traceback(tb)
tb = None
tp = <class 'TypeError'>
value = None
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/six.py:718:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/pytest_asyncio/plugin.py:97: in wrapper
return loop.run_until_complete(setup())
/usr/lib/python3.8/asyncio/base_events.py:616: in run_until_complete
return future.result()
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/pytest_asyncio/plugin.py:78: in setup
res = await gen_obj.__anext__()
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/async_generator/_impl.py:366: in step
return await ANextIter(self._it, start_fn, *args)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/async_generator/_impl.py:197: in __next__
return self._invoke(first_fn, *first_args)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/async_generator/_impl.py:209: in _invoke
result = fn(*args)
system/conftest.py:226: in docker_setup_and_teardown_module
await setup(nodes_num_module)
system/docker_setup.py:167: in setup
main(nodes_num=nodes_num)
system/docker_setup.py:130: in main
network_builder(NETWORK_SUBNET,
system/docker_setup.py:33: in network_builder
client.networks.prune()
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/docker/models/networks.py:214: in prune
return self.client.api.prune_networks(filters=filters)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/docker/utils/decorators.py:34: in wrapper
return f(self, *args, **kwargs)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/docker/api/network.py:174: in prune_networks
return self._result(self._post(url, params=params), True)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/docker/utils/decorators.py:46: in inner
return f(self, *args, **kwargs)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/docker/api/client.py:221: in _post
return self.post(url, **self._set_request_timeout(kwargs))
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/requests/sessions.py:637: in post
return self.request("POST", url, data=data, json=json, **kwargs)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/requests/sessions.py:589: in request
resp = self.send(prep, **send_kwargs)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/requests/sessions.py:703: in send
r = adapter.send(request, **kwargs)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/requests/adapters.py:486: in send
resp = conn.urlopen(
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/urllib3/connectionpool.py:793: in urlopen
response = self._make_request(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <docker.transport.unixconn.UnixHTTPConnectionPool object at 0x7f647f78c670>
conn = <docker.transport.unixconn.UnixHTTPConnection object at 0x7f647f67a8b0>
method = 'POST', url = '/v1.35/networks/prune', body = None
headers = HTTPHeaderDict({'User-Agent': 'docker-sdk-python/3.7.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Length': '0'})
retries = Retry(total=0, connect=None, read=False, redirect=None, status=None)
timeout = Timeout(connect=60, read=60, total=None), chunked = False
response_conn = <docker.transport.unixconn.UnixHTTPConnection object at 0x7f647f67a8b0>
preload_content = False, decode_content = False, enforce_content_length = True
def _make_request(
self,
conn: BaseHTTPConnection,
method: str,
url: str,
body: _TYPE_BODY | None = None,
headers: typing.Mapping[str, str] | None = None,
retries: Retry | None = None,
timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT,
chunked: bool = False,
response_conn: BaseHTTPConnection | None = None,
preload_content: bool = True,
decode_content: bool = True,
enforce_content_length: bool = True,
) -> BaseHTTPResponse:
"""
Perform a request on a given urllib connection object taken from our
pool.
:param conn:
a connection from one of our connection pools
:param method:
HTTP request method (such as GET, POST, PUT, etc.)
:param url:
The URL to perform the request on.
:param body:
Data to send in the request body, either :class:`str`, :class:`bytes`,
an iterable of :class:`str`/:class:`bytes`, or a file-like object.
:param headers:
Dictionary of custom headers to send, such as User-Agent,
If-None-Match, etc. If None, pool headers are used. If provided,
these headers completely replace any pool-specific headers.
:param retries:
Configure the number of retries to allow before raising a
:class:`~urllib3.exceptions.MaxRetryError` exception.
Pass ``None`` to retry until you receive a response. Pass a
:class:`~urllib3.util.retry.Retry` object for fine-grained control
over different types of retries.
Pass an integer number to retry connection errors that many times,
but no other types of errors. Pass zero to never retry.
If ``False``, then retries are disabled and any exception is raised
immediately. Also, instead of raising a MaxRetryError on redirects,
the redirect response will be returned.
:type retries: :class:`~urllib3.util.retry.Retry`, False, or an int.
:param timeout:
If specified, overrides the default timeout for this one
request. It may be a float (in seconds) or an instance of
:class:`urllib3.util.Timeout`.
:param chunked:
If True, urllib3 will send the body using chunked transfer
encoding. Otherwise, urllib3 will send the body using the standard
content-length form. Defaults to False.
:param response_conn:
Set this to ``None`` if you will handle releasing the connection or
set the connection to have the response release it.
:param preload_content:
If True, the response's body will be preloaded during construction.
:param decode_content:
If True, will attempt to decode the body based on the
'content-encoding' header.
:param enforce_content_length:
Enforce content length checking. Body returned by server must match
value of Content-Length header, if present. Otherwise, raise error.
"""
self.num_requests += 1
timeout_obj = self._get_timeout(timeout)
timeout_obj.start_connect()
conn.timeout = Timeout.resolve_default_timeout(timeout_obj.connect_timeout)
try:
# Trigger any extra validation we need to do.
try:
self._validate_conn(conn)
except (SocketTimeout, BaseSSLError) as e:
self._raise_timeout(err=e, url=url, timeout_value=conn.timeout)
raise
# _validate_conn() starts the connection to an HTTPS proxy
# so we need to wrap errors with 'ProxyError' here too.
except (
OSError,
NewConnectionError,
TimeoutError,
BaseSSLError,
CertificateError,
SSLError,
) as e:
new_e: Exception = e
if isinstance(e, (BaseSSLError, CertificateError)):
new_e = SSLError(e)
# If the connection didn't successfully connect to it's proxy
# then there
if isinstance(
new_e, (OSError, NewConnectionError, TimeoutError, SSLError)
) and (conn and conn.proxy and not conn.has_connected_to_proxy):
new_e = _wrap_proxy_error(new_e, conn.proxy.scheme)
raise new_e
# conn.request() calls http.client.*.request, not the method in
# urllib3.request. It also calls makefile (recv) on the socket.
try:
> conn.request(
method,
url,
body=body,
headers=headers,
chunked=chunked,
preload_content=preload_content,
decode_content=decode_content,
enforce_content_length=enforce_content_length,
)
E TypeError: request() got an unexpected keyword argument 'chunked'
body = None
chunked = False
conn = <docker.transport.unixconn.UnixHTTPConnection object at 0x7f647f67a8b0>
decode_content = False
enforce_content_length = True
headers = HTTPHeaderDict({'User-Agent': 'docker-sdk-python/3.7.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Length': '0'})
method = 'POST'
preload_content = False
response_conn = <docker.transport.unixconn.UnixHTTPConnection object at 0x7f647f67a8b0>
retries = Retry(total=0, connect=None, read=False, redirect=None, status=None)
self = <docker.transport.unixconn.UnixHTTPConnectionPool object at 0x7f647f78c670>
timeout = Timeout(connect=60, read=60, total=None)
timeout_obj = Timeout(connect=60, read=60, total=None)
url = '/v1.35/networks/prune'
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/urllib3/connectionpool.py:496: TypeError
Check failure on line 1 in system/indy-node-tests/test_ledger.py
github-actions / test_ledger Test Report
system/indy-node-tests/test_ledger.py.test_send_and_get_nym_positive[TRUST_ANCHOR-TRUST_ANCHOR]
test setup failure
Raw output
tp = <class 'TypeError'>, value = None, tb = None
def reraise(tp, value, tb=None):
try:
if value is None:
value = tp()
if value.__traceback__ is not tb:
> raise value.with_traceback(tb)
tb = None
tp = <class 'TypeError'>
value = None
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/six.py:718:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/pytest_asyncio/plugin.py:97: in wrapper
return loop.run_until_complete(setup())
/usr/lib/python3.8/asyncio/base_events.py:616: in run_until_complete
return future.result()
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/pytest_asyncio/plugin.py:78: in setup
res = await gen_obj.__anext__()
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/async_generator/_impl.py:366: in step
return await ANextIter(self._it, start_fn, *args)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/async_generator/_impl.py:197: in __next__
return self._invoke(first_fn, *first_args)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/async_generator/_impl.py:209: in _invoke
result = fn(*args)
system/conftest.py:226: in docker_setup_and_teardown_module
await setup(nodes_num_module)
system/docker_setup.py:167: in setup
main(nodes_num=nodes_num)
system/docker_setup.py:130: in main
network_builder(NETWORK_SUBNET,
system/docker_setup.py:33: in network_builder
client.networks.prune()
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/docker/models/networks.py:214: in prune
return self.client.api.prune_networks(filters=filters)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/docker/utils/decorators.py:34: in wrapper
return f(self, *args, **kwargs)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/docker/api/network.py:174: in prune_networks
return self._result(self._post(url, params=params), True)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/docker/utils/decorators.py:46: in inner
return f(self, *args, **kwargs)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/docker/api/client.py:221: in _post
return self.post(url, **self._set_request_timeout(kwargs))
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/requests/sessions.py:637: in post
return self.request("POST", url, data=data, json=json, **kwargs)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/requests/sessions.py:589: in request
resp = self.send(prep, **send_kwargs)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/requests/sessions.py:703: in send
r = adapter.send(request, **kwargs)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/requests/adapters.py:486: in send
resp = conn.urlopen(
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/urllib3/connectionpool.py:793: in urlopen
response = self._make_request(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <docker.transport.unixconn.UnixHTTPConnectionPool object at 0x7f647f78c670>
conn = <docker.transport.unixconn.UnixHTTPConnection object at 0x7f647f67a8b0>
method = 'POST', url = '/v1.35/networks/prune', body = None
headers = HTTPHeaderDict({'User-Agent': 'docker-sdk-python/3.7.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Length': '0'})
retries = Retry(total=0, connect=None, read=False, redirect=None, status=None)
timeout = Timeout(connect=60, read=60, total=None), chunked = False
response_conn = <docker.transport.unixconn.UnixHTTPConnection object at 0x7f647f67a8b0>
preload_content = False, decode_content = False, enforce_content_length = True
def _make_request(
self,
conn: BaseHTTPConnection,
method: str,
url: str,
body: _TYPE_BODY | None = None,
headers: typing.Mapping[str, str] | None = None,
retries: Retry | None = None,
timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT,
chunked: bool = False,
response_conn: BaseHTTPConnection | None = None,
preload_content: bool = True,
decode_content: bool = True,
enforce_content_length: bool = True,
) -> BaseHTTPResponse:
"""
Perform a request on a given urllib connection object taken from our
pool.
:param conn:
a connection from one of our connection pools
:param method:
HTTP request method (such as GET, POST, PUT, etc.)
:param url:
The URL to perform the request on.
:param body:
Data to send in the request body, either :class:`str`, :class:`bytes`,
an iterable of :class:`str`/:class:`bytes`, or a file-like object.
:param headers:
Dictionary of custom headers to send, such as User-Agent,
If-None-Match, etc. If None, pool headers are used. If provided,
these headers completely replace any pool-specific headers.
:param retries:
Configure the number of retries to allow before raising a
:class:`~urllib3.exceptions.MaxRetryError` exception.
Pass ``None`` to retry until you receive a response. Pass a
:class:`~urllib3.util.retry.Retry` object for fine-grained control
over different types of retries.
Pass an integer number to retry connection errors that many times,
but no other types of errors. Pass zero to never retry.
If ``False``, then retries are disabled and any exception is raised
immediately. Also, instead of raising a MaxRetryError on redirects,
the redirect response will be returned.
:type retries: :class:`~urllib3.util.retry.Retry`, False, or an int.
:param timeout:
If specified, overrides the default timeout for this one
request. It may be a float (in seconds) or an instance of
:class:`urllib3.util.Timeout`.
:param chunked:
If True, urllib3 will send the body using chunked transfer
encoding. Otherwise, urllib3 will send the body using the standard
content-length form. Defaults to False.
:param response_conn:
Set this to ``None`` if you will handle releasing the connection or
set the connection to have the response release it.
:param preload_content:
If True, the response's body will be preloaded during construction.
:param decode_content:
If True, will attempt to decode the body based on the
'content-encoding' header.
:param enforce_content_length:
Enforce content length checking. Body returned by server must match
value of Content-Length header, if present. Otherwise, raise error.
"""
self.num_requests += 1
timeout_obj = self._get_timeout(timeout)
timeout_obj.start_connect()
conn.timeout = Timeout.resolve_default_timeout(timeout_obj.connect_timeout)
try:
# Trigger any extra validation we need to do.
try:
self._validate_conn(conn)
except (SocketTimeout, BaseSSLError) as e:
self._raise_timeout(err=e, url=url, timeout_value=conn.timeout)
raise
# _validate_conn() starts the connection to an HTTPS proxy
# so we need to wrap errors with 'ProxyError' here too.
except (
OSError,
NewConnectionError,
TimeoutError,
BaseSSLError,
CertificateError,
SSLError,
) as e:
new_e: Exception = e
if isinstance(e, (BaseSSLError, CertificateError)):
new_e = SSLError(e)
# If the connection didn't successfully connect to it's proxy
# then there
if isinstance(
new_e, (OSError, NewConnectionError, TimeoutError, SSLError)
) and (conn and conn.proxy and not conn.has_connected_to_proxy):
new_e = _wrap_proxy_error(new_e, conn.proxy.scheme)
raise new_e
# conn.request() calls http.client.*.request, not the method in
# urllib3.request. It also calls makefile (recv) on the socket.
try:
> conn.request(
method,
url,
body=body,
headers=headers,
chunked=chunked,
preload_content=preload_content,
decode_content=decode_content,
enforce_content_length=enforce_content_length,
)
E TypeError: request() got an unexpected keyword argument 'chunked'
body = None
chunked = False
conn = <docker.transport.unixconn.UnixHTTPConnection object at 0x7f647f67a8b0>
decode_content = False
enforce_content_length = True
headers = HTTPHeaderDict({'User-Agent': 'docker-sdk-python/3.7.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Length': '0'})
method = 'POST'
preload_content = False
response_conn = <docker.transport.unixconn.UnixHTTPConnection object at 0x7f647f67a8b0>
retries = Retry(total=0, connect=None, read=False, redirect=None, status=None)
self = <docker.transport.unixconn.UnixHTTPConnectionPool object at 0x7f647f78c670>
timeout = Timeout(connect=60, read=60, total=None)
timeout_obj = Timeout(connect=60, read=60, total=None)
url = '/v1.35/networks/prune'
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/urllib3/connectionpool.py:496: TypeError
Check failure on line 1 in system/indy-node-tests/test_ledger.py
github-actions / test_ledger Test Report
system/indy-node-tests/test_ledger.py.test_send_and_get_nym_positive[None-TRUSTEE]
test setup failure
Raw output
tp = <class 'TypeError'>, value = None, tb = None
def reraise(tp, value, tb=None):
try:
if value is None:
value = tp()
if value.__traceback__ is not tb:
> raise value.with_traceback(tb)
tb = None
tp = <class 'TypeError'>
value = None
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/six.py:718:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/pytest_asyncio/plugin.py:97: in wrapper
return loop.run_until_complete(setup())
/usr/lib/python3.8/asyncio/base_events.py:616: in run_until_complete
return future.result()
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/pytest_asyncio/plugin.py:78: in setup
res = await gen_obj.__anext__()
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/async_generator/_impl.py:366: in step
return await ANextIter(self._it, start_fn, *args)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/async_generator/_impl.py:197: in __next__
return self._invoke(first_fn, *first_args)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/async_generator/_impl.py:209: in _invoke
result = fn(*args)
system/conftest.py:226: in docker_setup_and_teardown_module
await setup(nodes_num_module)
system/docker_setup.py:167: in setup
main(nodes_num=nodes_num)
system/docker_setup.py:130: in main
network_builder(NETWORK_SUBNET,
system/docker_setup.py:33: in network_builder
client.networks.prune()
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/docker/models/networks.py:214: in prune
return self.client.api.prune_networks(filters=filters)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/docker/utils/decorators.py:34: in wrapper
return f(self, *args, **kwargs)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/docker/api/network.py:174: in prune_networks
return self._result(self._post(url, params=params), True)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/docker/utils/decorators.py:46: in inner
return f(self, *args, **kwargs)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/docker/api/client.py:221: in _post
return self.post(url, **self._set_request_timeout(kwargs))
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/requests/sessions.py:637: in post
return self.request("POST", url, data=data, json=json, **kwargs)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/requests/sessions.py:589: in request
resp = self.send(prep, **send_kwargs)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/requests/sessions.py:703: in send
r = adapter.send(request, **kwargs)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/requests/adapters.py:486: in send
resp = conn.urlopen(
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/urllib3/connectionpool.py:793: in urlopen
response = self._make_request(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <docker.transport.unixconn.UnixHTTPConnectionPool object at 0x7f647f78c670>
conn = <docker.transport.unixconn.UnixHTTPConnection object at 0x7f647f67a8b0>
method = 'POST', url = '/v1.35/networks/prune', body = None
headers = HTTPHeaderDict({'User-Agent': 'docker-sdk-python/3.7.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Length': '0'})
retries = Retry(total=0, connect=None, read=False, redirect=None, status=None)
timeout = Timeout(connect=60, read=60, total=None), chunked = False
response_conn = <docker.transport.unixconn.UnixHTTPConnection object at 0x7f647f67a8b0>
preload_content = False, decode_content = False, enforce_content_length = True
def _make_request(
self,
conn: BaseHTTPConnection,
method: str,
url: str,
body: _TYPE_BODY | None = None,
headers: typing.Mapping[str, str] | None = None,
retries: Retry | None = None,
timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT,
chunked: bool = False,
response_conn: BaseHTTPConnection | None = None,
preload_content: bool = True,
decode_content: bool = True,
enforce_content_length: bool = True,
) -> BaseHTTPResponse:
"""
Perform a request on a given urllib connection object taken from our
pool.
:param conn:
a connection from one of our connection pools
:param method:
HTTP request method (such as GET, POST, PUT, etc.)
:param url:
The URL to perform the request on.
:param body:
Data to send in the request body, either :class:`str`, :class:`bytes`,
an iterable of :class:`str`/:class:`bytes`, or a file-like object.
:param headers:
Dictionary of custom headers to send, such as User-Agent,
If-None-Match, etc. If None, pool headers are used. If provided,
these headers completely replace any pool-specific headers.
:param retries:
Configure the number of retries to allow before raising a
:class:`~urllib3.exceptions.MaxRetryError` exception.
Pass ``None`` to retry until you receive a response. Pass a
:class:`~urllib3.util.retry.Retry` object for fine-grained control
over different types of retries.
Pass an integer number to retry connection errors that many times,
but no other types of errors. Pass zero to never retry.
If ``False``, then retries are disabled and any exception is raised
immediately. Also, instead of raising a MaxRetryError on redirects,
the redirect response will be returned.
:type retries: :class:`~urllib3.util.retry.Retry`, False, or an int.
:param timeout:
If specified, overrides the default timeout for this one
request. It may be a float (in seconds) or an instance of
:class:`urllib3.util.Timeout`.
:param chunked:
If True, urllib3 will send the body using chunked transfer
encoding. Otherwise, urllib3 will send the body using the standard
content-length form. Defaults to False.
:param response_conn:
Set this to ``None`` if you will handle releasing the connection or
set the connection to have the response release it.
:param preload_content:
If True, the response's body will be preloaded during construction.
:param decode_content:
If True, will attempt to decode the body based on the
'content-encoding' header.
:param enforce_content_length:
Enforce content length checking. Body returned by server must match
value of Content-Length header, if present. Otherwise, raise error.
"""
self.num_requests += 1
timeout_obj = self._get_timeout(timeout)
timeout_obj.start_connect()
conn.timeout = Timeout.resolve_default_timeout(timeout_obj.connect_timeout)
try:
# Trigger any extra validation we need to do.
try:
self._validate_conn(conn)
except (SocketTimeout, BaseSSLError) as e:
self._raise_timeout(err=e, url=url, timeout_value=conn.timeout)
raise
# _validate_conn() starts the connection to an HTTPS proxy
# so we need to wrap errors with 'ProxyError' here too.
except (
OSError,
NewConnectionError,
TimeoutError,
BaseSSLError,
CertificateError,
SSLError,
) as e:
new_e: Exception = e
if isinstance(e, (BaseSSLError, CertificateError)):
new_e = SSLError(e)
# If the connection didn't successfully connect to it's proxy
# then there
if isinstance(
new_e, (OSError, NewConnectionError, TimeoutError, SSLError)
) and (conn and conn.proxy and not conn.has_connected_to_proxy):
new_e = _wrap_proxy_error(new_e, conn.proxy.scheme)
raise new_e
# conn.request() calls http.client.*.request, not the method in
# urllib3.request. It also calls makefile (recv) on the socket.
try:
> conn.request(
method,
url,
body=body,
headers=headers,
chunked=chunked,
preload_content=preload_content,
decode_content=decode_content,
enforce_content_length=enforce_content_length,
)
E TypeError: request() got an unexpected keyword argument 'chunked'
body = None
chunked = False
conn = <docker.transport.unixconn.UnixHTTPConnection object at 0x7f647f67a8b0>
decode_content = False
enforce_content_length = True
headers = HTTPHeaderDict({'User-Agent': 'docker-sdk-python/3.7.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Length': '0'})
method = 'POST'
preload_content = False
response_conn = <docker.transport.unixconn.UnixHTTPConnection object at 0x7f647f67a8b0>
retries = Retry(total=0, connect=None, read=False, redirect=None, status=None)
self = <docker.transport.unixconn.UnixHTTPConnectionPool object at 0x7f647f78c670>
timeout = Timeout(connect=60, read=60, total=None)
timeout_obj = Timeout(connect=60, read=60, total=None)
url = '/v1.35/networks/prune'
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/urllib3/connectionpool.py:496: TypeError
Check failure on line 1 in system/indy-node-tests/test_ledger.py
github-actions / test_ledger Test Report
system/indy-node-tests/test_ledger.py.test_send_and_get_nym_positive[None-STEWARD]
test setup failure
Raw output
tp = <class 'TypeError'>, value = None, tb = None
def reraise(tp, value, tb=None):
try:
if value is None:
value = tp()
if value.__traceback__ is not tb:
> raise value.with_traceback(tb)
tb = None
tp = <class 'TypeError'>
value = None
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/six.py:718:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/pytest_asyncio/plugin.py:97: in wrapper
return loop.run_until_complete(setup())
/usr/lib/python3.8/asyncio/base_events.py:616: in run_until_complete
return future.result()
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/pytest_asyncio/plugin.py:78: in setup
res = await gen_obj.__anext__()
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/async_generator/_impl.py:366: in step
return await ANextIter(self._it, start_fn, *args)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/async_generator/_impl.py:197: in __next__
return self._invoke(first_fn, *first_args)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/async_generator/_impl.py:209: in _invoke
result = fn(*args)
system/conftest.py:226: in docker_setup_and_teardown_module
await setup(nodes_num_module)
system/docker_setup.py:167: in setup
main(nodes_num=nodes_num)
system/docker_setup.py:130: in main
network_builder(NETWORK_SUBNET,
system/docker_setup.py:33: in network_builder
client.networks.prune()
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/docker/models/networks.py:214: in prune
return self.client.api.prune_networks(filters=filters)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/docker/utils/decorators.py:34: in wrapper
return f(self, *args, **kwargs)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/docker/api/network.py:174: in prune_networks
return self._result(self._post(url, params=params), True)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/docker/utils/decorators.py:46: in inner
return f(self, *args, **kwargs)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/docker/api/client.py:221: in _post
return self.post(url, **self._set_request_timeout(kwargs))
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/requests/sessions.py:637: in post
return self.request("POST", url, data=data, json=json, **kwargs)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/requests/sessions.py:589: in request
resp = self.send(prep, **send_kwargs)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/requests/sessions.py:703: in send
r = adapter.send(request, **kwargs)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/requests/adapters.py:486: in send
resp = conn.urlopen(
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/urllib3/connectionpool.py:793: in urlopen
response = self._make_request(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <docker.transport.unixconn.UnixHTTPConnectionPool object at 0x7f647f78c670>
conn = <docker.transport.unixconn.UnixHTTPConnection object at 0x7f647f67a8b0>
method = 'POST', url = '/v1.35/networks/prune', body = None
headers = HTTPHeaderDict({'User-Agent': 'docker-sdk-python/3.7.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Length': '0'})
retries = Retry(total=0, connect=None, read=False, redirect=None, status=None)
timeout = Timeout(connect=60, read=60, total=None), chunked = False
response_conn = <docker.transport.unixconn.UnixHTTPConnection object at 0x7f647f67a8b0>
preload_content = False, decode_content = False, enforce_content_length = True
def _make_request(
self,
conn: BaseHTTPConnection,
method: str,
url: str,
body: _TYPE_BODY | None = None,
headers: typing.Mapping[str, str] | None = None,
retries: Retry | None = None,
timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT,
chunked: bool = False,
response_conn: BaseHTTPConnection | None = None,
preload_content: bool = True,
decode_content: bool = True,
enforce_content_length: bool = True,
) -> BaseHTTPResponse:
"""
Perform a request on a given urllib connection object taken from our
pool.
:param conn:
a connection from one of our connection pools
:param method:
HTTP request method (such as GET, POST, PUT, etc.)
:param url:
The URL to perform the request on.
:param body:
Data to send in the request body, either :class:`str`, :class:`bytes`,
an iterable of :class:`str`/:class:`bytes`, or a file-like object.
:param headers:
Dictionary of custom headers to send, such as User-Agent,
If-None-Match, etc. If None, pool headers are used. If provided,
these headers completely replace any pool-specific headers.
:param retries:
Configure the number of retries to allow before raising a
:class:`~urllib3.exceptions.MaxRetryError` exception.
Pass ``None`` to retry until you receive a response. Pass a
:class:`~urllib3.util.retry.Retry` object for fine-grained control
over different types of retries.
Pass an integer number to retry connection errors that many times,
but no other types of errors. Pass zero to never retry.
If ``False``, then retries are disabled and any exception is raised
immediately. Also, instead of raising a MaxRetryError on redirects,
the redirect response will be returned.
:type retries: :class:`~urllib3.util.retry.Retry`, False, or an int.
:param timeout:
If specified, overrides the default timeout for this one
request. It may be a float (in seconds) or an instance of
:class:`urllib3.util.Timeout`.
:param chunked:
If True, urllib3 will send the body using chunked transfer
encoding. Otherwise, urllib3 will send the body using the standard
content-length form. Defaults to False.
:param response_conn:
Set this to ``None`` if you will handle releasing the connection or
set the connection to have the response release it.
:param preload_content:
If True, the response's body will be preloaded during construction.
:param decode_content:
If True, will attempt to decode the body based on the
'content-encoding' header.
:param enforce_content_length:
Enforce content length checking. Body returned by server must match
value of Content-Length header, if present. Otherwise, raise error.
"""
self.num_requests += 1
timeout_obj = self._get_timeout(timeout)
timeout_obj.start_connect()
conn.timeout = Timeout.resolve_default_timeout(timeout_obj.connect_timeout)
try:
# Trigger any extra validation we need to do.
try:
self._validate_conn(conn)
except (SocketTimeout, BaseSSLError) as e:
self._raise_timeout(err=e, url=url, timeout_value=conn.timeout)
raise
# _validate_conn() starts the connection to an HTTPS proxy
# so we need to wrap errors with 'ProxyError' here too.
except (
OSError,
NewConnectionError,
TimeoutError,
BaseSSLError,
CertificateError,
SSLError,
) as e:
new_e: Exception = e
if isinstance(e, (BaseSSLError, CertificateError)):
new_e = SSLError(e)
# If the connection didn't successfully connect to it's proxy
# then there
if isinstance(
new_e, (OSError, NewConnectionError, TimeoutError, SSLError)
) and (conn and conn.proxy and not conn.has_connected_to_proxy):
new_e = _wrap_proxy_error(new_e, conn.proxy.scheme)
raise new_e
# conn.request() calls http.client.*.request, not the method in
# urllib3.request. It also calls makefile (recv) on the socket.
try:
> conn.request(
method,
url,
body=body,
headers=headers,
chunked=chunked,
preload_content=preload_content,
decode_content=decode_content,
enforce_content_length=enforce_content_length,
)
E TypeError: request() got an unexpected keyword argument 'chunked'
body = None
chunked = False
conn = <docker.transport.unixconn.UnixHTTPConnection object at 0x7f647f67a8b0>
decode_content = False
enforce_content_length = True
headers = HTTPHeaderDict({'User-Agent': 'docker-sdk-python/3.7.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Length': '0'})
method = 'POST'
preload_content = False
response_conn = <docker.transport.unixconn.UnixHTTPConnection object at 0x7f647f67a8b0>
retries = Retry(total=0, connect=None, read=False, redirect=None, status=None)
self = <docker.transport.unixconn.UnixHTTPConnectionPool object at 0x7f647f78c670>
timeout = Timeout(connect=60, read=60, total=None)
timeout_obj = Timeout(connect=60, read=60, total=None)
url = '/v1.35/networks/prune'
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/urllib3/connectionpool.py:496: TypeError
Check failure on line 1 in system/indy-node-tests/test_ledger.py
github-actions / test_ledger Test Report
system/indy-node-tests/test_ledger.py.test_send_and_get_nym_positive[None-TRUST_ANCHOR]
test setup failure
Raw output
tp = <class 'TypeError'>, value = None, tb = None
def reraise(tp, value, tb=None):
try:
if value is None:
value = tp()
if value.__traceback__ is not tb:
> raise value.with_traceback(tb)
tb = None
tp = <class 'TypeError'>
value = None
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/six.py:718:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/pytest_asyncio/plugin.py:97: in wrapper
return loop.run_until_complete(setup())
/usr/lib/python3.8/asyncio/base_events.py:616: in run_until_complete
return future.result()
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/pytest_asyncio/plugin.py:78: in setup
res = await gen_obj.__anext__()
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/async_generator/_impl.py:366: in step
return await ANextIter(self._it, start_fn, *args)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/async_generator/_impl.py:197: in __next__
return self._invoke(first_fn, *first_args)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/async_generator/_impl.py:209: in _invoke
result = fn(*args)
system/conftest.py:226: in docker_setup_and_teardown_module
await setup(nodes_num_module)
system/docker_setup.py:167: in setup
main(nodes_num=nodes_num)
system/docker_setup.py:130: in main
network_builder(NETWORK_SUBNET,
system/docker_setup.py:33: in network_builder
client.networks.prune()
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/docker/models/networks.py:214: in prune
return self.client.api.prune_networks(filters=filters)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/docker/utils/decorators.py:34: in wrapper
return f(self, *args, **kwargs)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/docker/api/network.py:174: in prune_networks
return self._result(self._post(url, params=params), True)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/docker/utils/decorators.py:46: in inner
return f(self, *args, **kwargs)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/docker/api/client.py:221: in _post
return self.post(url, **self._set_request_timeout(kwargs))
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/requests/sessions.py:637: in post
return self.request("POST", url, data=data, json=json, **kwargs)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/requests/sessions.py:589: in request
resp = self.send(prep, **send_kwargs)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/requests/sessions.py:703: in send
r = adapter.send(request, **kwargs)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/requests/adapters.py:486: in send
resp = conn.urlopen(
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/urllib3/connectionpool.py:793: in urlopen
response = self._make_request(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <docker.transport.unixconn.UnixHTTPConnectionPool object at 0x7f647f78c670>
conn = <docker.transport.unixconn.UnixHTTPConnection object at 0x7f647f67a8b0>
method = 'POST', url = '/v1.35/networks/prune', body = None
headers = HTTPHeaderDict({'User-Agent': 'docker-sdk-python/3.7.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Length': '0'})
retries = Retry(total=0, connect=None, read=False, redirect=None, status=None)
timeout = Timeout(connect=60, read=60, total=None), chunked = False
response_conn = <docker.transport.unixconn.UnixHTTPConnection object at 0x7f647f67a8b0>
preload_content = False, decode_content = False, enforce_content_length = True
def _make_request(
self,
conn: BaseHTTPConnection,
method: str,
url: str,
body: _TYPE_BODY | None = None,
headers: typing.Mapping[str, str] | None = None,
retries: Retry | None = None,
timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT,
chunked: bool = False,
response_conn: BaseHTTPConnection | None = None,
preload_content: bool = True,
decode_content: bool = True,
enforce_content_length: bool = True,
) -> BaseHTTPResponse:
"""
Perform a request on a given urllib connection object taken from our
pool.
:param conn:
a connection from one of our connection pools
:param method:
HTTP request method (such as GET, POST, PUT, etc.)
:param url:
The URL to perform the request on.
:param body:
Data to send in the request body, either :class:`str`, :class:`bytes`,
an iterable of :class:`str`/:class:`bytes`, or a file-like object.
:param headers:
Dictionary of custom headers to send, such as User-Agent,
If-None-Match, etc. If None, pool headers are used. If provided,
these headers completely replace any pool-specific headers.
:param retries:
Configure the number of retries to allow before raising a
:class:`~urllib3.exceptions.MaxRetryError` exception.
Pass ``None`` to retry until you receive a response. Pass a
:class:`~urllib3.util.retry.Retry` object for fine-grained control
over different types of retries.
Pass an integer number to retry connection errors that many times,
but no other types of errors. Pass zero to never retry.
If ``False``, then retries are disabled and any exception is raised
immediately. Also, instead of raising a MaxRetryError on redirects,
the redirect response will be returned.
:type retries: :class:`~urllib3.util.retry.Retry`, False, or an int.
:param timeout:
If specified, overrides the default timeout for this one
request. It may be a float (in seconds) or an instance of
:class:`urllib3.util.Timeout`.
:param chunked:
If True, urllib3 will send the body using chunked transfer
encoding. Otherwise, urllib3 will send the body using the standard
content-length form. Defaults to False.
:param response_conn:
Set this to ``None`` if you will handle releasing the connection or
set the connection to have the response release it.
:param preload_content:
If True, the response's body will be preloaded during construction.
:param decode_content:
If True, will attempt to decode the body based on the
'content-encoding' header.
:param enforce_content_length:
Enforce content length checking. Body returned by server must match
value of Content-Length header, if present. Otherwise, raise error.
"""
self.num_requests += 1
timeout_obj = self._get_timeout(timeout)
timeout_obj.start_connect()
conn.timeout = Timeout.resolve_default_timeout(timeout_obj.connect_timeout)
try:
# Trigger any extra validation we need to do.
try:
self._validate_conn(conn)
except (SocketTimeout, BaseSSLError) as e:
self._raise_timeout(err=e, url=url, timeout_value=conn.timeout)
raise
# _validate_conn() starts the connection to an HTTPS proxy
# so we need to wrap errors with 'ProxyError' here too.
except (
OSError,
NewConnectionError,
TimeoutError,
BaseSSLError,
CertificateError,
SSLError,
) as e:
new_e: Exception = e
if isinstance(e, (BaseSSLError, CertificateError)):
new_e = SSLError(e)
# If the connection didn't successfully connect to it's proxy
# then there
if isinstance(
new_e, (OSError, NewConnectionError, TimeoutError, SSLError)
) and (conn and conn.proxy and not conn.has_connected_to_proxy):
new_e = _wrap_proxy_error(new_e, conn.proxy.scheme)
raise new_e
# conn.request() calls http.client.*.request, not the method in
# urllib3.request. It also calls makefile (recv) on the socket.
try:
> conn.request(
method,
url,
body=body,
headers=headers,
chunked=chunked,
preload_content=preload_content,
decode_content=decode_content,
enforce_content_length=enforce_content_length,
)
E TypeError: request() got an unexpected keyword argument 'chunked'
body = None
chunked = False
conn = <docker.transport.unixconn.UnixHTTPConnection object at 0x7f647f67a8b0>
decode_content = False
enforce_content_length = True
headers = HTTPHeaderDict({'User-Agent': 'docker-sdk-python/3.7.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Length': '0'})
method = 'POST'
preload_content = False
response_conn = <docker.transport.unixconn.UnixHTTPConnection object at 0x7f647f67a8b0>
retries = Retry(total=0, connect=None, read=False, redirect=None, status=None)
self = <docker.transport.unixconn.UnixHTTPConnectionPool object at 0x7f647f78c670>
timeout = Timeout(connect=60, read=60, total=None)
timeout_obj = Timeout(connect=60, read=60, total=None)
url = '/v1.35/networks/prune'
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/urllib3/connectionpool.py:496: TypeError
Check failure on line 1 in system/indy-node-tests/test_ledger.py
github-actions / test_ledger Test Report
system/indy-node-tests/test_ledger.py.test_send_and_get_nym_negative[]
test setup failure
Raw output
tp = <class 'TypeError'>, value = None, tb = None
def reraise(tp, value, tb=None):
try:
if value is None:
value = tp()
if value.__traceback__ is not tb:
> raise value.with_traceback(tb)
tb = None
tp = <class 'TypeError'>
value = None
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/six.py:718:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/pytest_asyncio/plugin.py:97: in wrapper
return loop.run_until_complete(setup())
/usr/lib/python3.8/asyncio/base_events.py:616: in run_until_complete
return future.result()
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/pytest_asyncio/plugin.py:78: in setup
res = await gen_obj.__anext__()
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/async_generator/_impl.py:366: in step
return await ANextIter(self._it, start_fn, *args)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/async_generator/_impl.py:197: in __next__
return self._invoke(first_fn, *first_args)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/async_generator/_impl.py:209: in _invoke
result = fn(*args)
system/conftest.py:226: in docker_setup_and_teardown_module
await setup(nodes_num_module)
system/docker_setup.py:167: in setup
main(nodes_num=nodes_num)
system/docker_setup.py:130: in main
network_builder(NETWORK_SUBNET,
system/docker_setup.py:33: in network_builder
client.networks.prune()
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/docker/models/networks.py:214: in prune
return self.client.api.prune_networks(filters=filters)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/docker/utils/decorators.py:34: in wrapper
return f(self, *args, **kwargs)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/docker/api/network.py:174: in prune_networks
return self._result(self._post(url, params=params), True)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/docker/utils/decorators.py:46: in inner
return f(self, *args, **kwargs)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/docker/api/client.py:221: in _post
return self.post(url, **self._set_request_timeout(kwargs))
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/requests/sessions.py:637: in post
return self.request("POST", url, data=data, json=json, **kwargs)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/requests/sessions.py:589: in request
resp = self.send(prep, **send_kwargs)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/requests/sessions.py:703: in send
r = adapter.send(request, **kwargs)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/requests/adapters.py:486: in send
resp = conn.urlopen(
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/urllib3/connectionpool.py:793: in urlopen
response = self._make_request(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <docker.transport.unixconn.UnixHTTPConnectionPool object at 0x7f647f78c670>
conn = <docker.transport.unixconn.UnixHTTPConnection object at 0x7f647f67a8b0>
method = 'POST', url = '/v1.35/networks/prune', body = None
headers = HTTPHeaderDict({'User-Agent': 'docker-sdk-python/3.7.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Length': '0'})
retries = Retry(total=0, connect=None, read=False, redirect=None, status=None)
timeout = Timeout(connect=60, read=60, total=None), chunked = False
response_conn = <docker.transport.unixconn.UnixHTTPConnection object at 0x7f647f67a8b0>
preload_content = False, decode_content = False, enforce_content_length = True
def _make_request(
self,
conn: BaseHTTPConnection,
method: str,
url: str,
body: _TYPE_BODY | None = None,
headers: typing.Mapping[str, str] | None = None,
retries: Retry | None = None,
timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT,
chunked: bool = False,
response_conn: BaseHTTPConnection | None = None,
preload_content: bool = True,
decode_content: bool = True,
enforce_content_length: bool = True,
) -> BaseHTTPResponse:
"""
Perform a request on a given urllib connection object taken from our
pool.
:param conn:
a connection from one of our connection pools
:param method:
HTTP request method (such as GET, POST, PUT, etc.)
:param url:
The URL to perform the request on.
:param body:
Data to send in the request body, either :class:`str`, :class:`bytes`,
an iterable of :class:`str`/:class:`bytes`, or a file-like object.
:param headers:
Dictionary of custom headers to send, such as User-Agent,
If-None-Match, etc. If None, pool headers are used. If provided,
these headers completely replace any pool-specific headers.
:param retries:
Configure the number of retries to allow before raising a
:class:`~urllib3.exceptions.MaxRetryError` exception.
Pass ``None`` to retry until you receive a response. Pass a
:class:`~urllib3.util.retry.Retry` object for fine-grained control
over different types of retries.
Pass an integer number to retry connection errors that many times,
but no other types of errors. Pass zero to never retry.
If ``False``, then retries are disabled and any exception is raised
immediately. Also, instead of raising a MaxRetryError on redirects,
the redirect response will be returned.
:type retries: :class:`~urllib3.util.retry.Retry`, False, or an int.
:param timeout:
If specified, overrides the default timeout for this one
request. It may be a float (in seconds) or an instance of
:class:`urllib3.util.Timeout`.
:param chunked:
If True, urllib3 will send the body using chunked transfer
encoding. Otherwise, urllib3 will send the body using the standard
content-length form. Defaults to False.
:param response_conn:
Set this to ``None`` if you will handle releasing the connection or
set the connection to have the response release it.
:param preload_content:
If True, the response's body will be preloaded during construction.
:param decode_content:
If True, will attempt to decode the body based on the
'content-encoding' header.
:param enforce_content_length:
Enforce content length checking. Body returned by server must match
value of Content-Length header, if present. Otherwise, raise error.
"""
self.num_requests += 1
timeout_obj = self._get_timeout(timeout)
timeout_obj.start_connect()
conn.timeout = Timeout.resolve_default_timeout(timeout_obj.connect_timeout)
try:
# Trigger any extra validation we need to do.
try:
self._validate_conn(conn)
except (SocketTimeout, BaseSSLError) as e:
self._raise_timeout(err=e, url=url, timeout_value=conn.timeout)
raise
# _validate_conn() starts the connection to an HTTPS proxy
# so we need to wrap errors with 'ProxyError' here too.
except (
OSError,
NewConnectionError,
TimeoutError,
BaseSSLError,
CertificateError,
SSLError,
) as e:
new_e: Exception = e
if isinstance(e, (BaseSSLError, CertificateError)):
new_e = SSLError(e)
# If the connection didn't successfully connect to it's proxy
# then there
if isinstance(
new_e, (OSError, NewConnectionError, TimeoutError, SSLError)
) and (conn and conn.proxy and not conn.has_connected_to_proxy):
new_e = _wrap_proxy_error(new_e, conn.proxy.scheme)
raise new_e
# conn.request() calls http.client.*.request, not the method in
# urllib3.request. It also calls makefile (recv) on the socket.
try:
> conn.request(
method,
url,
body=body,
headers=headers,
chunked=chunked,
preload_content=preload_content,
decode_content=decode_content,
enforce_content_length=enforce_content_length,
)
E TypeError: request() got an unexpected keyword argument 'chunked'
body = None
chunked = False
conn = <docker.transport.unixconn.UnixHTTPConnection object at 0x7f647f67a8b0>
decode_content = False
enforce_content_length = True
headers = HTTPHeaderDict({'User-Agent': 'docker-sdk-python/3.7.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Length': '0'})
method = 'POST'
preload_content = False
response_conn = <docker.transport.unixconn.UnixHTTPConnection object at 0x7f647f67a8b0>
retries = Retry(total=0, connect=None, read=False, redirect=None, status=None)
self = <docker.transport.unixconn.UnixHTTPConnectionPool object at 0x7f647f78c670>
timeout = Timeout(connect=60, read=60, total=None)
timeout_obj = Timeout(connect=60, read=60, total=None)
url = '/v1.35/networks/prune'
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/urllib3/connectionpool.py:496: TypeError
Check failure on line 1 in system/indy-node-tests/test_ledger.py
github-actions / test_ledger Test Report
system/indy-node-tests/test_ledger.py.test_send_and_get_nym_negative[CtxqIbCmDmXZ0KippONG26x2BIGPEffS]
test setup failure
Raw output
tp = <class 'TypeError'>, value = None, tb = None
def reraise(tp, value, tb=None):
try:
if value is None:
value = tp()
if value.__traceback__ is not tb:
> raise value.with_traceback(tb)
tb = None
tp = <class 'TypeError'>
value = None
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/six.py:718:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/pytest_asyncio/plugin.py:97: in wrapper
return loop.run_until_complete(setup())
/usr/lib/python3.8/asyncio/base_events.py:616: in run_until_complete
return future.result()
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/pytest_asyncio/plugin.py:78: in setup
res = await gen_obj.__anext__()
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/async_generator/_impl.py:366: in step
return await ANextIter(self._it, start_fn, *args)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/async_generator/_impl.py:197: in __next__
return self._invoke(first_fn, *first_args)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/async_generator/_impl.py:209: in _invoke
result = fn(*args)
system/conftest.py:226: in docker_setup_and_teardown_module
await setup(nodes_num_module)
system/docker_setup.py:167: in setup
main(nodes_num=nodes_num)
system/docker_setup.py:130: in main
network_builder(NETWORK_SUBNET,
system/docker_setup.py:33: in network_builder
client.networks.prune()
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/docker/models/networks.py:214: in prune
return self.client.api.prune_networks(filters=filters)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/docker/utils/decorators.py:34: in wrapper
return f(self, *args, **kwargs)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/docker/api/network.py:174: in prune_networks
return self._result(self._post(url, params=params), True)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/docker/utils/decorators.py:46: in inner
return f(self, *args, **kwargs)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/docker/api/client.py:221: in _post
return self.post(url, **self._set_request_timeout(kwargs))
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/requests/sessions.py:637: in post
return self.request("POST", url, data=data, json=json, **kwargs)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/requests/sessions.py:589: in request
resp = self.send(prep, **send_kwargs)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/requests/sessions.py:703: in send
r = adapter.send(request, **kwargs)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/requests/adapters.py:486: in send
resp = conn.urlopen(
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/urllib3/connectionpool.py:793: in urlopen
response = self._make_request(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <docker.transport.unixconn.UnixHTTPConnectionPool object at 0x7f647f78c670>
conn = <docker.transport.unixconn.UnixHTTPConnection object at 0x7f647f67a8b0>
method = 'POST', url = '/v1.35/networks/prune', body = None
headers = HTTPHeaderDict({'User-Agent': 'docker-sdk-python/3.7.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Length': '0'})
retries = Retry(total=0, connect=None, read=False, redirect=None, status=None)
timeout = Timeout(connect=60, read=60, total=None), chunked = False
response_conn = <docker.transport.unixconn.UnixHTTPConnection object at 0x7f647f67a8b0>
preload_content = False, decode_content = False, enforce_content_length = True
def _make_request(
self,
conn: BaseHTTPConnection,
method: str,
url: str,
body: _TYPE_BODY | None = None,
headers: typing.Mapping[str, str] | None = None,
retries: Retry | None = None,
timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT,
chunked: bool = False,
response_conn: BaseHTTPConnection | None = None,
preload_content: bool = True,
decode_content: bool = True,
enforce_content_length: bool = True,
) -> BaseHTTPResponse:
"""
Perform a request on a given urllib connection object taken from our
pool.
:param conn:
a connection from one of our connection pools
:param method:
HTTP request method (such as GET, POST, PUT, etc.)
:param url:
The URL to perform the request on.
:param body:
Data to send in the request body, either :class:`str`, :class:`bytes`,
an iterable of :class:`str`/:class:`bytes`, or a file-like object.
:param headers:
Dictionary of custom headers to send, such as User-Agent,
If-None-Match, etc. If None, pool headers are used. If provided,
these headers completely replace any pool-specific headers.
:param retries:
Configure the number of retries to allow before raising a
:class:`~urllib3.exceptions.MaxRetryError` exception.
Pass ``None`` to retry until you receive a response. Pass a
:class:`~urllib3.util.retry.Retry` object for fine-grained control
over different types of retries.
Pass an integer number to retry connection errors that many times,
but no other types of errors. Pass zero to never retry.
If ``False``, then retries are disabled and any exception is raised
immediately. Also, instead of raising a MaxRetryError on redirects,
the redirect response will be returned.
:type retries: :class:`~urllib3.util.retry.Retry`, False, or an int.
:param timeout:
If specified, overrides the default timeout for this one
request. It may be a float (in seconds) or an instance of
:class:`urllib3.util.Timeout`.
:param chunked:
If True, urllib3 will send the body using chunked transfer
encoding. Otherwise, urllib3 will send the body using the standard
content-length form. Defaults to False.
:param response_conn:
Set this to ``None`` if you will handle releasing the connection or
set the connection to have the response release it.
:param preload_content:
If True, the response's body will be preloaded during construction.
:param decode_content:
If True, will attempt to decode the body based on the
'content-encoding' header.
:param enforce_content_length:
Enforce content length checking. Body returned by server must match
value of Content-Length header, if present. Otherwise, raise error.
"""
self.num_requests += 1
timeout_obj = self._get_timeout(timeout)
timeout_obj.start_connect()
conn.timeout = Timeout.resolve_default_timeout(timeout_obj.connect_timeout)
try:
# Trigger any extra validation we need to do.
try:
self._validate_conn(conn)
except (SocketTimeout, BaseSSLError) as e:
self._raise_timeout(err=e, url=url, timeout_value=conn.timeout)
raise
# _validate_conn() starts the connection to an HTTPS proxy
# so we need to wrap errors with 'ProxyError' here too.
except (
OSError,
NewConnectionError,
TimeoutError,
BaseSSLError,
CertificateError,
SSLError,
) as e:
new_e: Exception = e
if isinstance(e, (BaseSSLError, CertificateError)):
new_e = SSLError(e)
# If the connection didn't successfully connect to it's proxy
# then there
if isinstance(
new_e, (OSError, NewConnectionError, TimeoutError, SSLError)
) and (conn and conn.proxy and not conn.has_connected_to_proxy):
new_e = _wrap_proxy_error(new_e, conn.proxy.scheme)
raise new_e
# conn.request() calls http.client.*.request, not the method in
# urllib3.request. It also calls makefile (recv) on the socket.
try:
> conn.request(
method,
url,
body=body,
headers=headers,
chunked=chunked,
preload_content=preload_content,
decode_content=decode_content,
enforce_content_length=enforce_content_length,
)
E TypeError: request() got an unexpected keyword argument 'chunked'
body = None
chunked = False
conn = <docker.transport.unixconn.UnixHTTPConnection object at 0x7f647f67a8b0>
decode_content = False
enforce_content_length = True
headers = HTTPHeaderDict({'User-Agent': 'docker-sdk-python/3.7.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Length': '0'})
method = 'POST'
preload_content = False
response_conn = <docker.transport.unixconn.UnixHTTPConnection object at 0x7f647f67a8b0>
retries = Retry(total=0, connect=None, read=False, redirect=None, status=None)
self = <docker.transport.unixconn.UnixHTTPConnectionPool object at 0x7f647f78c670>
timeout = Timeout(connect=60, read=60, total=None)
timeout_obj = Timeout(connect=60, read=60, total=None)
url = '/v1.35/networks/prune'
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/urllib3/connectionpool.py:496: TypeError
Check failure on line 1 in system/indy-node-tests/test_ledger.py
github-actions / test_ledger Test Report
system/indy-node-tests/test_ledger.py.test_send_and_get_attrib_positive[e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855-None-None-None]
test setup failure
Raw output
tp = <class 'TypeError'>, value = None, tb = None
def reraise(tp, value, tb=None):
try:
if value is None:
value = tp()
if value.__traceback__ is not tb:
> raise value.with_traceback(tb)
tb = None
tp = <class 'TypeError'>
value = None
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/six.py:718:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/pytest_asyncio/plugin.py:97: in wrapper
return loop.run_until_complete(setup())
/usr/lib/python3.8/asyncio/base_events.py:616: in run_until_complete
return future.result()
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/pytest_asyncio/plugin.py:78: in setup
res = await gen_obj.__anext__()
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/async_generator/_impl.py:366: in step
return await ANextIter(self._it, start_fn, *args)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/async_generator/_impl.py:197: in __next__
return self._invoke(first_fn, *first_args)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/async_generator/_impl.py:209: in _invoke
result = fn(*args)
system/conftest.py:226: in docker_setup_and_teardown_module
await setup(nodes_num_module)
system/docker_setup.py:167: in setup
main(nodes_num=nodes_num)
system/docker_setup.py:130: in main
network_builder(NETWORK_SUBNET,
system/docker_setup.py:33: in network_builder
client.networks.prune()
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/docker/models/networks.py:214: in prune
return self.client.api.prune_networks(filters=filters)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/docker/utils/decorators.py:34: in wrapper
return f(self, *args, **kwargs)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/docker/api/network.py:174: in prune_networks
return self._result(self._post(url, params=params), True)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/docker/utils/decorators.py:46: in inner
return f(self, *args, **kwargs)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/docker/api/client.py:221: in _post
return self.post(url, **self._set_request_timeout(kwargs))
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/requests/sessions.py:637: in post
return self.request("POST", url, data=data, json=json, **kwargs)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/requests/sessions.py:589: in request
resp = self.send(prep, **send_kwargs)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/requests/sessions.py:703: in send
r = adapter.send(request, **kwargs)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/requests/adapters.py:486: in send
resp = conn.urlopen(
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/urllib3/connectionpool.py:793: in urlopen
response = self._make_request(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <docker.transport.unixconn.UnixHTTPConnectionPool object at 0x7f647f78c670>
conn = <docker.transport.unixconn.UnixHTTPConnection object at 0x7f647f67a8b0>
method = 'POST', url = '/v1.35/networks/prune', body = None
headers = HTTPHeaderDict({'User-Agent': 'docker-sdk-python/3.7.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Length': '0'})
retries = Retry(total=0, connect=None, read=False, redirect=None, status=None)
timeout = Timeout(connect=60, read=60, total=None), chunked = False
response_conn = <docker.transport.unixconn.UnixHTTPConnection object at 0x7f647f67a8b0>
preload_content = False, decode_content = False, enforce_content_length = True
def _make_request(
self,
conn: BaseHTTPConnection,
method: str,
url: str,
body: _TYPE_BODY | None = None,
headers: typing.Mapping[str, str] | None = None,
retries: Retry | None = None,
timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT,
chunked: bool = False,
response_conn: BaseHTTPConnection | None = None,
preload_content: bool = True,
decode_content: bool = True,
enforce_content_length: bool = True,
) -> BaseHTTPResponse:
"""
Perform a request on a given urllib connection object taken from our
pool.
:param conn:
a connection from one of our connection pools
:param method:
HTTP request method (such as GET, POST, PUT, etc.)
:param url:
The URL to perform the request on.
:param body:
Data to send in the request body, either :class:`str`, :class:`bytes`,
an iterable of :class:`str`/:class:`bytes`, or a file-like object.
:param headers:
Dictionary of custom headers to send, such as User-Agent,
If-None-Match, etc. If None, pool headers are used. If provided,
these headers completely replace any pool-specific headers.
:param retries:
Configure the number of retries to allow before raising a
:class:`~urllib3.exceptions.MaxRetryError` exception.
Pass ``None`` to retry until you receive a response. Pass a
:class:`~urllib3.util.retry.Retry` object for fine-grained control
over different types of retries.
Pass an integer number to retry connection errors that many times,
but no other types of errors. Pass zero to never retry.
If ``False``, then retries are disabled and any exception is raised
immediately. Also, instead of raising a MaxRetryError on redirects,
the redirect response will be returned.
:type retries: :class:`~urllib3.util.retry.Retry`, False, or an int.
:param timeout:
If specified, overrides the default timeout for this one
request. It may be a float (in seconds) or an instance of
:class:`urllib3.util.Timeout`.
:param chunked:
If True, urllib3 will send the body using chunked transfer
encoding. Otherwise, urllib3 will send the body using the standard
content-length form. Defaults to False.
:param response_conn:
Set this to ``None`` if you will handle releasing the connection or
set the connection to have the response release it.
:param preload_content:
If True, the response's body will be preloaded during construction.
:param decode_content:
If True, will attempt to decode the body based on the
'content-encoding' header.
:param enforce_content_length:
Enforce content length checking. Body returned by server must match
value of Content-Length header, if present. Otherwise, raise error.
"""
self.num_requests += 1
timeout_obj = self._get_timeout(timeout)
timeout_obj.start_connect()
conn.timeout = Timeout.resolve_default_timeout(timeout_obj.connect_timeout)
try:
# Trigger any extra validation we need to do.
try:
self._validate_conn(conn)
except (SocketTimeout, BaseSSLError) as e:
self._raise_timeout(err=e, url=url, timeout_value=conn.timeout)
raise
# _validate_conn() starts the connection to an HTTPS proxy
# so we need to wrap errors with 'ProxyError' here too.
except (
OSError,
NewConnectionError,
TimeoutError,
BaseSSLError,
CertificateError,
SSLError,
) as e:
new_e: Exception = e
if isinstance(e, (BaseSSLError, CertificateError)):
new_e = SSLError(e)
# If the connection didn't successfully connect to it's proxy
# then there
if isinstance(
new_e, (OSError, NewConnectionError, TimeoutError, SSLError)
) and (conn and conn.proxy and not conn.has_connected_to_proxy):
new_e = _wrap_proxy_error(new_e, conn.proxy.scheme)
raise new_e
# conn.request() calls http.client.*.request, not the method in
# urllib3.request. It also calls makefile (recv) on the socket.
try:
> conn.request(
method,
url,
body=body,
headers=headers,
chunked=chunked,
preload_content=preload_content,
decode_content=decode_content,
enforce_content_length=enforce_content_length,
)
E TypeError: request() got an unexpected keyword argument 'chunked'
body = None
chunked = False
conn = <docker.transport.unixconn.UnixHTTPConnection object at 0x7f647f67a8b0>
decode_content = False
enforce_content_length = True
headers = HTTPHeaderDict({'User-Agent': 'docker-sdk-python/3.7.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Length': '0'})
method = 'POST'
preload_content = False
response_conn = <docker.transport.unixconn.UnixHTTPConnection object at 0x7f647f67a8b0>
retries = Retry(total=0, connect=None, read=False, redirect=None, status=None)
self = <docker.transport.unixconn.UnixHTTPConnectionPool object at 0x7f647f78c670>
timeout = Timeout(connect=60, read=60, total=None)
timeout_obj = Timeout(connect=60, read=60, total=None)
url = '/v1.35/networks/prune'
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/urllib3/connectionpool.py:496: TypeError
Check failure on line 1 in system/indy-node-tests/test_ledger.py
github-actions / test_ledger Test Report
system/indy-node-tests/test_ledger.py.test_send_and_get_attrib_positive[None-{"key": "value"}-None-key]
test setup failure
Raw output
tp = <class 'TypeError'>, value = None, tb = None
def reraise(tp, value, tb=None):
try:
if value is None:
value = tp()
if value.__traceback__ is not tb:
> raise value.with_traceback(tb)
tb = None
tp = <class 'TypeError'>
value = None
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/six.py:718:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/pytest_asyncio/plugin.py:97: in wrapper
return loop.run_until_complete(setup())
/usr/lib/python3.8/asyncio/base_events.py:616: in run_until_complete
return future.result()
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/pytest_asyncio/plugin.py:78: in setup
res = await gen_obj.__anext__()
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/async_generator/_impl.py:366: in step
return await ANextIter(self._it, start_fn, *args)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/async_generator/_impl.py:197: in __next__
return self._invoke(first_fn, *first_args)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/async_generator/_impl.py:209: in _invoke
result = fn(*args)
system/conftest.py:226: in docker_setup_and_teardown_module
await setup(nodes_num_module)
system/docker_setup.py:167: in setup
main(nodes_num=nodes_num)
system/docker_setup.py:130: in main
network_builder(NETWORK_SUBNET,
system/docker_setup.py:33: in network_builder
client.networks.prune()
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/docker/models/networks.py:214: in prune
return self.client.api.prune_networks(filters=filters)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/docker/utils/decorators.py:34: in wrapper
return f(self, *args, **kwargs)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/docker/api/network.py:174: in prune_networks
return self._result(self._post(url, params=params), True)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/docker/utils/decorators.py:46: in inner
return f(self, *args, **kwargs)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/docker/api/client.py:221: in _post
return self.post(url, **self._set_request_timeout(kwargs))
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/requests/sessions.py:637: in post
return self.request("POST", url, data=data, json=json, **kwargs)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/requests/sessions.py:589: in request
resp = self.send(prep, **send_kwargs)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/requests/sessions.py:703: in send
r = adapter.send(request, **kwargs)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/requests/adapters.py:486: in send
resp = conn.urlopen(
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/urllib3/connectionpool.py:793: in urlopen
response = self._make_request(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <docker.transport.unixconn.UnixHTTPConnectionPool object at 0x7f647f78c670>
conn = <docker.transport.unixconn.UnixHTTPConnection object at 0x7f647f67a8b0>
method = 'POST', url = '/v1.35/networks/prune', body = None
headers = HTTPHeaderDict({'User-Agent': 'docker-sdk-python/3.7.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Length': '0'})
retries = Retry(total=0, connect=None, read=False, redirect=None, status=None)
timeout = Timeout(connect=60, read=60, total=None), chunked = False
response_conn = <docker.transport.unixconn.UnixHTTPConnection object at 0x7f647f67a8b0>
preload_content = False, decode_content = False, enforce_content_length = True
def _make_request(
self,
conn: BaseHTTPConnection,
method: str,
url: str,
body: _TYPE_BODY | None = None,
headers: typing.Mapping[str, str] | None = None,
retries: Retry | None = None,
timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT,
chunked: bool = False,
response_conn: BaseHTTPConnection | None = None,
preload_content: bool = True,
decode_content: bool = True,
enforce_content_length: bool = True,
) -> BaseHTTPResponse:
"""
Perform a request on a given urllib connection object taken from our
pool.
:param conn:
a connection from one of our connection pools
:param method:
HTTP request method (such as GET, POST, PUT, etc.)
:param url:
The URL to perform the request on.
:param body:
Data to send in the request body, either :class:`str`, :class:`bytes`,
an iterable of :class:`str`/:class:`bytes`, or a file-like object.
:param headers:
Dictionary of custom headers to send, such as User-Agent,
If-None-Match, etc. If None, pool headers are used. If provided,
these headers completely replace any pool-specific headers.
:param retries:
Configure the number of retries to allow before raising a
:class:`~urllib3.exceptions.MaxRetryError` exception.
Pass ``None`` to retry until you receive a response. Pass a
:class:`~urllib3.util.retry.Retry` object for fine-grained control
over different types of retries.
Pass an integer number to retry connection errors that many times,
but no other types of errors. Pass zero to never retry.
If ``False``, then retries are disabled and any exception is raised
immediately. Also, instead of raising a MaxRetryError on redirects,
the redirect response will be returned.
:type retries: :class:`~urllib3.util.retry.Retry`, False, or an int.
:param timeout:
If specified, overrides the default timeout for this one
request. It may be a float (in seconds) or an instance of
:class:`urllib3.util.Timeout`.
:param chunked:
If True, urllib3 will send the body using chunked transfer
encoding. Otherwise, urllib3 will send the body using the standard
content-length form. Defaults to False.
:param response_conn:
Set this to ``None`` if you will handle releasing the connection or
set the connection to have the response release it.
:param preload_content:
If True, the response's body will be preloaded during construction.
:param decode_content:
If True, will attempt to decode the body based on the
'content-encoding' header.
:param enforce_content_length:
Enforce content length checking. Body returned by server must match
value of Content-Length header, if present. Otherwise, raise error.
"""
self.num_requests += 1
timeout_obj = self._get_timeout(timeout)
timeout_obj.start_connect()
conn.timeout = Timeout.resolve_default_timeout(timeout_obj.connect_timeout)
try:
# Trigger any extra validation we need to do.
try:
self._validate_conn(conn)
except (SocketTimeout, BaseSSLError) as e:
self._raise_timeout(err=e, url=url, timeout_value=conn.timeout)
raise
# _validate_conn() starts the connection to an HTTPS proxy
# so we need to wrap errors with 'ProxyError' here too.
except (
OSError,
NewConnectionError,
TimeoutError,
BaseSSLError,
CertificateError,
SSLError,
) as e:
new_e: Exception = e
if isinstance(e, (BaseSSLError, CertificateError)):
new_e = SSLError(e)
# If the connection didn't successfully connect to it's proxy
# then there
if isinstance(
new_e, (OSError, NewConnectionError, TimeoutError, SSLError)
) and (conn and conn.proxy and not conn.has_connected_to_proxy):
new_e = _wrap_proxy_error(new_e, conn.proxy.scheme)
raise new_e
# conn.request() calls http.client.*.request, not the method in
# urllib3.request. It also calls makefile (recv) on the socket.
try:
> conn.request(
method,
url,
body=body,
headers=headers,
chunked=chunked,
preload_content=preload_content,
decode_content=decode_content,
enforce_content_length=enforce_content_length,
)
E TypeError: request() got an unexpected keyword argument 'chunked'
body = None
chunked = False
conn = <docker.transport.unixconn.UnixHTTPConnection object at 0x7f647f67a8b0>
decode_content = False
enforce_content_length = True
headers = HTTPHeaderDict({'User-Agent': 'docker-sdk-python/3.7.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Length': '0'})
method = 'POST'
preload_content = False
response_conn = <docker.transport.unixconn.UnixHTTPConnection object at 0x7f647f67a8b0>
retries = Retry(total=0, connect=None, read=False, redirect=None, status=None)
self = <docker.transport.unixconn.UnixHTTPConnectionPool object at 0x7f647f78c670>
timeout = Timeout(connect=60, read=60, total=None)
timeout_obj = Timeout(connect=60, read=60, total=None)
url = '/v1.35/networks/prune'
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/urllib3/connectionpool.py:496: TypeError
Check failure on line 1 in system/indy-node-tests/test_ledger.py
github-actions / test_ledger Test Report
system/indy-node-tests/test_ledger.py.test_send_and_get_attrib_positive[None-None-ENCRYPTED_STRING-None]
test setup failure
Raw output
tp = <class 'TypeError'>, value = None, tb = None
def reraise(tp, value, tb=None):
try:
if value is None:
value = tp()
if value.__traceback__ is not tb:
> raise value.with_traceback(tb)
tb = None
tp = <class 'TypeError'>
value = None
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/six.py:718:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/pytest_asyncio/plugin.py:97: in wrapper
return loop.run_until_complete(setup())
/usr/lib/python3.8/asyncio/base_events.py:616: in run_until_complete
return future.result()
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/pytest_asyncio/plugin.py:78: in setup
res = await gen_obj.__anext__()
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/async_generator/_impl.py:366: in step
return await ANextIter(self._it, start_fn, *args)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/async_generator/_impl.py:197: in __next__
return self._invoke(first_fn, *first_args)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/async_generator/_impl.py:209: in _invoke
result = fn(*args)
system/conftest.py:226: in docker_setup_and_teardown_module
await setup(nodes_num_module)
system/docker_setup.py:167: in setup
main(nodes_num=nodes_num)
system/docker_setup.py:130: in main
network_builder(NETWORK_SUBNET,
system/docker_setup.py:33: in network_builder
client.networks.prune()
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/docker/models/networks.py:214: in prune
return self.client.api.prune_networks(filters=filters)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/docker/utils/decorators.py:34: in wrapper
return f(self, *args, **kwargs)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/docker/api/network.py:174: in prune_networks
return self._result(self._post(url, params=params), True)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/docker/utils/decorators.py:46: in inner
return f(self, *args, **kwargs)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/docker/api/client.py:221: in _post
return self.post(url, **self._set_request_timeout(kwargs))
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/requests/sessions.py:637: in post
return self.request("POST", url, data=data, json=json, **kwargs)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/requests/sessions.py:589: in request
resp = self.send(prep, **send_kwargs)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/requests/sessions.py:703: in send
r = adapter.send(request, **kwargs)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/requests/adapters.py:486: in send
resp = conn.urlopen(
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/urllib3/connectionpool.py:793: in urlopen
response = self._make_request(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <docker.transport.unixconn.UnixHTTPConnectionPool object at 0x7f647f78c670>
conn = <docker.transport.unixconn.UnixHTTPConnection object at 0x7f647f67a8b0>
method = 'POST', url = '/v1.35/networks/prune', body = None
headers = HTTPHeaderDict({'User-Agent': 'docker-sdk-python/3.7.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Length': '0'})
retries = Retry(total=0, connect=None, read=False, redirect=None, status=None)
timeout = Timeout(connect=60, read=60, total=None), chunked = False
response_conn = <docker.transport.unixconn.UnixHTTPConnection object at 0x7f647f67a8b0>
preload_content = False, decode_content = False, enforce_content_length = True
def _make_request(
self,
conn: BaseHTTPConnection,
method: str,
url: str,
body: _TYPE_BODY | None = None,
headers: typing.Mapping[str, str] | None = None,
retries: Retry | None = None,
timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT,
chunked: bool = False,
response_conn: BaseHTTPConnection | None = None,
preload_content: bool = True,
decode_content: bool = True,
enforce_content_length: bool = True,
) -> BaseHTTPResponse:
"""
Perform a request on a given urllib connection object taken from our
pool.
:param conn:
a connection from one of our connection pools
:param method:
HTTP request method (such as GET, POST, PUT, etc.)
:param url:
The URL to perform the request on.
:param body:
Data to send in the request body, either :class:`str`, :class:`bytes`,
an iterable of :class:`str`/:class:`bytes`, or a file-like object.
:param headers:
Dictionary of custom headers to send, such as User-Agent,
If-None-Match, etc. If None, pool headers are used. If provided,
these headers completely replace any pool-specific headers.
:param retries:
Configure the number of retries to allow before raising a
:class:`~urllib3.exceptions.MaxRetryError` exception.
Pass ``None`` to retry until you receive a response. Pass a
:class:`~urllib3.util.retry.Retry` object for fine-grained control
over different types of retries.
Pass an integer number to retry connection errors that many times,
but no other types of errors. Pass zero to never retry.
If ``False``, then retries are disabled and any exception is raised
immediately. Also, instead of raising a MaxRetryError on redirects,
the redirect response will be returned.
:type retries: :class:`~urllib3.util.retry.Retry`, False, or an int.
:param timeout:
If specified, overrides the default timeout for this one
request. It may be a float (in seconds) or an instance of
:class:`urllib3.util.Timeout`.
:param chunked:
If True, urllib3 will send the body using chunked transfer
encoding. Otherwise, urllib3 will send the body using the standard
content-length form. Defaults to False.
:param response_conn:
Set this to ``None`` if you will handle releasing the connection or
set the connection to have the response release it.
:param preload_content:
If True, the response's body will be preloaded during construction.
:param decode_content:
If True, will attempt to decode the body based on the
'content-encoding' header.
:param enforce_content_length:
Enforce content length checking. Body returned by server must match
value of Content-Length header, if present. Otherwise, raise error.
"""
self.num_requests += 1
timeout_obj = self._get_timeout(timeout)
timeout_obj.start_connect()
conn.timeout = Timeout.resolve_default_timeout(timeout_obj.connect_timeout)
try:
# Trigger any extra validation we need to do.
try:
self._validate_conn(conn)
except (SocketTimeout, BaseSSLError) as e:
self._raise_timeout(err=e, url=url, timeout_value=conn.timeout)
raise
# _validate_conn() starts the connection to an HTTPS proxy
# so we need to wrap errors with 'ProxyError' here too.
except (
OSError,
NewConnectionError,
TimeoutError,
BaseSSLError,
CertificateError,
SSLError,
) as e:
new_e: Exception = e
if isinstance(e, (BaseSSLError, CertificateError)):
new_e = SSLError(e)
# If the connection didn't successfully connect to it's proxy
# then there
if isinstance(
new_e, (OSError, NewConnectionError, TimeoutError, SSLError)
) and (conn and conn.proxy and not conn.has_connected_to_proxy):
new_e = _wrap_proxy_error(new_e, conn.proxy.scheme)
raise new_e
# conn.request() calls http.client.*.request, not the method in
# urllib3.request. It also calls makefile (recv) on the socket.
try:
> conn.request(
method,
url,
body=body,
headers=headers,
chunked=chunked,
preload_content=preload_content,
decode_content=decode_content,
enforce_content_length=enforce_content_length,
)
E TypeError: request() got an unexpected keyword argument 'chunked'
body = None
chunked = False
conn = <docker.transport.unixconn.UnixHTTPConnection object at 0x7f647f67a8b0>
decode_content = False
enforce_content_length = True
headers = HTTPHeaderDict({'User-Agent': 'docker-sdk-python/3.7.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Length': '0'})
method = 'POST'
preload_content = False
response_conn = <docker.transport.unixconn.UnixHTTPConnection object at 0x7f647f67a8b0>
retries = Retry(total=0, connect=None, read=False, redirect=None, status=None)
self = <docker.transport.unixconn.UnixHTTPConnectionPool object at 0x7f647f78c670>
timeout = Timeout(connect=60, read=60, total=None)
timeout_obj = Timeout(connect=60, read=60, total=None)
url = '/v1.35/networks/prune'
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/urllib3/connectionpool.py:496: TypeError
Check failure on line 1 in system/indy-node-tests/test_ledger.py
github-actions / test_ledger Test Report
system/indy-node-tests/test_ledger.py.test_send_and_get_attrib_negative[None-None-None-VdrError-False]
test setup failure
Raw output
tp = <class 'TypeError'>, value = None, tb = None
def reraise(tp, value, tb=None):
try:
if value is None:
value = tp()
if value.__traceback__ is not tb:
> raise value.with_traceback(tb)
tb = None
tp = <class 'TypeError'>
value = None
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/six.py:718:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/pytest_asyncio/plugin.py:97: in wrapper
return loop.run_until_complete(setup())
/usr/lib/python3.8/asyncio/base_events.py:616: in run_until_complete
return future.result()
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/pytest_asyncio/plugin.py:78: in setup
res = await gen_obj.__anext__()
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/async_generator/_impl.py:366: in step
return await ANextIter(self._it, start_fn, *args)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/async_generator/_impl.py:197: in __next__
return self._invoke(first_fn, *first_args)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/async_generator/_impl.py:209: in _invoke
result = fn(*args)
system/conftest.py:226: in docker_setup_and_teardown_module
await setup(nodes_num_module)
system/docker_setup.py:167: in setup
main(nodes_num=nodes_num)
system/docker_setup.py:130: in main
network_builder(NETWORK_SUBNET,
system/docker_setup.py:33: in network_builder
client.networks.prune()
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/docker/models/networks.py:214: in prune
return self.client.api.prune_networks(filters=filters)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/docker/utils/decorators.py:34: in wrapper
return f(self, *args, **kwargs)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/docker/api/network.py:174: in prune_networks
return self._result(self._post(url, params=params), True)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/docker/utils/decorators.py:46: in inner
return f(self, *args, **kwargs)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/docker/api/client.py:221: in _post
return self.post(url, **self._set_request_timeout(kwargs))
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/requests/sessions.py:637: in post
return self.request("POST", url, data=data, json=json, **kwargs)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/requests/sessions.py:589: in request
resp = self.send(prep, **send_kwargs)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/requests/sessions.py:703: in send
r = adapter.send(request, **kwargs)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/requests/adapters.py:486: in send
resp = conn.urlopen(
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/urllib3/connectionpool.py:793: in urlopen
response = self._make_request(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <docker.transport.unixconn.UnixHTTPConnectionPool object at 0x7f647f78c670>
conn = <docker.transport.unixconn.UnixHTTPConnection object at 0x7f647f67a8b0>
method = 'POST', url = '/v1.35/networks/prune', body = None
headers = HTTPHeaderDict({'User-Agent': 'docker-sdk-python/3.7.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Length': '0'})
retries = Retry(total=0, connect=None, read=False, redirect=None, status=None)
timeout = Timeout(connect=60, read=60, total=None), chunked = False
response_conn = <docker.transport.unixconn.UnixHTTPConnection object at 0x7f647f67a8b0>
preload_content = False, decode_content = False, enforce_content_length = True
def _make_request(
self,
conn: BaseHTTPConnection,
method: str,
url: str,
body: _TYPE_BODY | None = None,
headers: typing.Mapping[str, str] | None = None,
retries: Retry | None = None,
timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT,
chunked: bool = False,
response_conn: BaseHTTPConnection | None = None,
preload_content: bool = True,
decode_content: bool = True,
enforce_content_length: bool = True,
) -> BaseHTTPResponse:
"""
Perform a request on a given urllib connection object taken from our
pool.
:param conn:
a connection from one of our connection pools
:param method:
HTTP request method (such as GET, POST, PUT, etc.)
:param url:
The URL to perform the request on.
:param body:
Data to send in the request body, either :class:`str`, :class:`bytes`,
an iterable of :class:`str`/:class:`bytes`, or a file-like object.
:param headers:
Dictionary of custom headers to send, such as User-Agent,
If-None-Match, etc. If None, pool headers are used. If provided,
these headers completely replace any pool-specific headers.
:param retries:
Configure the number of retries to allow before raising a
:class:`~urllib3.exceptions.MaxRetryError` exception.
Pass ``None`` to retry until you receive a response. Pass a
:class:`~urllib3.util.retry.Retry` object for fine-grained control
over different types of retries.
Pass an integer number to retry connection errors that many times,
but no other types of errors. Pass zero to never retry.
If ``False``, then retries are disabled and any exception is raised
immediately. Also, instead of raising a MaxRetryError on redirects,
the redirect response will be returned.
:type retries: :class:`~urllib3.util.retry.Retry`, False, or an int.
:param timeout:
If specified, overrides the default timeout for this one
request. It may be a float (in seconds) or an instance of
:class:`urllib3.util.Timeout`.
:param chunked:
If True, urllib3 will send the body using chunked transfer
encoding. Otherwise, urllib3 will send the body using the standard
content-length form. Defaults to False.
:param response_conn:
Set this to ``None`` if you will handle releasing the connection or
set the connection to have the response release it.
:param preload_content:
If True, the response's body will be preloaded during construction.
:param decode_content:
If True, will attempt to decode the body based on the
'content-encoding' header.
:param enforce_content_length:
Enforce content length checking. Body returned by server must match
value of Content-Length header, if present. Otherwise, raise error.
"""
self.num_requests += 1
timeout_obj = self._get_timeout(timeout)
timeout_obj.start_connect()
conn.timeout = Timeout.resolve_default_timeout(timeout_obj.connect_timeout)
try:
# Trigger any extra validation we need to do.
try:
self._validate_conn(conn)
except (SocketTimeout, BaseSSLError) as e:
self._raise_timeout(err=e, url=url, timeout_value=conn.timeout)
raise
# _validate_conn() starts the connection to an HTTPS proxy
# so we need to wrap errors with 'ProxyError' here too.
except (
OSError,
NewConnectionError,
TimeoutError,
BaseSSLError,
CertificateError,
SSLError,
) as e:
new_e: Exception = e
if isinstance(e, (BaseSSLError, CertificateError)):
new_e = SSLError(e)
# If the connection didn't successfully connect to it's proxy
# then there
if isinstance(
new_e, (OSError, NewConnectionError, TimeoutError, SSLError)
) and (conn and conn.proxy and not conn.has_connected_to_proxy):
new_e = _wrap_proxy_error(new_e, conn.proxy.scheme)
raise new_e
# conn.request() calls http.client.*.request, not the method in
# urllib3.request. It also calls makefile (recv) on the socket.
try:
> conn.request(
method,
url,
body=body,
headers=headers,
chunked=chunked,
preload_content=preload_content,
decode_content=decode_content,
enforce_content_length=enforce_content_length,
)
E TypeError: request() got an unexpected keyword argument 'chunked'
body = None
chunked = False
conn = <docker.transport.unixconn.UnixHTTPConnection object at 0x7f647f67a8b0>
decode_content = False
enforce_content_length = True
headers = HTTPHeaderDict({'User-Agent': 'docker-sdk-python/3.7.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Length': '0'})
method = 'POST'
preload_content = False
response_conn = <docker.transport.unixconn.UnixHTTPConnection object at 0x7f647f67a8b0>
retries = Retry(total=0, connect=None, read=False, redirect=None, status=None)
self = <docker.transport.unixconn.UnixHTTPConnectionPool object at 0x7f647f78c670>
timeout = Timeout(connect=60, read=60, total=None)
timeout_obj = Timeout(connect=60, read=60, total=None)
url = '/v1.35/networks/prune'
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/urllib3/connectionpool.py:496: TypeError
Check failure on line 1 in system/indy-node-tests/test_ledger.py
github-actions / test_ledger Test Report
system/indy-node-tests/test_ledger.py.test_send_and_get_attrib_negative[e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855-{"key": "value"}-None-None-False]
test setup failure
Raw output
tp = <class 'TypeError'>, value = None, tb = None
def reraise(tp, value, tb=None):
try:
if value is None:
value = tp()
if value.__traceback__ is not tb:
> raise value.with_traceback(tb)
tb = None
tp = <class 'TypeError'>
value = None
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/six.py:718:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/pytest_asyncio/plugin.py:97: in wrapper
return loop.run_until_complete(setup())
/usr/lib/python3.8/asyncio/base_events.py:616: in run_until_complete
return future.result()
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/pytest_asyncio/plugin.py:78: in setup
res = await gen_obj.__anext__()
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/async_generator/_impl.py:366: in step
return await ANextIter(self._it, start_fn, *args)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/async_generator/_impl.py:197: in __next__
return self._invoke(first_fn, *first_args)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/async_generator/_impl.py:209: in _invoke
result = fn(*args)
system/conftest.py:226: in docker_setup_and_teardown_module
await setup(nodes_num_module)
system/docker_setup.py:167: in setup
main(nodes_num=nodes_num)
system/docker_setup.py:130: in main
network_builder(NETWORK_SUBNET,
system/docker_setup.py:33: in network_builder
client.networks.prune()
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/docker/models/networks.py:214: in prune
return self.client.api.prune_networks(filters=filters)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/docker/utils/decorators.py:34: in wrapper
return f(self, *args, **kwargs)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/docker/api/network.py:174: in prune_networks
return self._result(self._post(url, params=params), True)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/docker/utils/decorators.py:46: in inner
return f(self, *args, **kwargs)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/docker/api/client.py:221: in _post
return self.post(url, **self._set_request_timeout(kwargs))
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/requests/sessions.py:637: in post
return self.request("POST", url, data=data, json=json, **kwargs)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/requests/sessions.py:589: in request
resp = self.send(prep, **send_kwargs)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/requests/sessions.py:703: in send
r = adapter.send(request, **kwargs)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/requests/adapters.py:486: in send
resp = conn.urlopen(
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/urllib3/connectionpool.py:793: in urlopen
response = self._make_request(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <docker.transport.unixconn.UnixHTTPConnectionPool object at 0x7f647f78c670>
conn = <docker.transport.unixconn.UnixHTTPConnection object at 0x7f647f67a8b0>
method = 'POST', url = '/v1.35/networks/prune', body = None
headers = HTTPHeaderDict({'User-Agent': 'docker-sdk-python/3.7.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Length': '0'})
retries = Retry(total=0, connect=None, read=False, redirect=None, status=None)
timeout = Timeout(connect=60, read=60, total=None), chunked = False
response_conn = <docker.transport.unixconn.UnixHTTPConnection object at 0x7f647f67a8b0>
preload_content = False, decode_content = False, enforce_content_length = True
def _make_request(
self,
conn: BaseHTTPConnection,
method: str,
url: str,
body: _TYPE_BODY | None = None,
headers: typing.Mapping[str, str] | None = None,
retries: Retry | None = None,
timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT,
chunked: bool = False,
response_conn: BaseHTTPConnection | None = None,
preload_content: bool = True,
decode_content: bool = True,
enforce_content_length: bool = True,
) -> BaseHTTPResponse:
"""
Perform a request on a given urllib connection object taken from our
pool.
:param conn:
a connection from one of our connection pools
:param method:
HTTP request method (such as GET, POST, PUT, etc.)
:param url:
The URL to perform the request on.
:param body:
Data to send in the request body, either :class:`str`, :class:`bytes`,
an iterable of :class:`str`/:class:`bytes`, or a file-like object.
:param headers:
Dictionary of custom headers to send, such as User-Agent,
If-None-Match, etc. If None, pool headers are used. If provided,
these headers completely replace any pool-specific headers.
:param retries:
Configure the number of retries to allow before raising a
:class:`~urllib3.exceptions.MaxRetryError` exception.
Pass ``None`` to retry until you receive a response. Pass a
:class:`~urllib3.util.retry.Retry` object for fine-grained control
over different types of retries.
Pass an integer number to retry connection errors that many times,
but no other types of errors. Pass zero to never retry.
If ``False``, then retries are disabled and any exception is raised
immediately. Also, instead of raising a MaxRetryError on redirects,
the redirect response will be returned.
:type retries: :class:`~urllib3.util.retry.Retry`, False, or an int.
:param timeout:
If specified, overrides the default timeout for this one
request. It may be a float (in seconds) or an instance of
:class:`urllib3.util.Timeout`.
:param chunked:
If True, urllib3 will send the body using chunked transfer
encoding. Otherwise, urllib3 will send the body using the standard
content-length form. Defaults to False.
:param response_conn:
Set this to ``None`` if you will handle releasing the connection or
set the connection to have the response release it.
:param preload_content:
If True, the response's body will be preloaded during construction.
:param decode_content:
If True, will attempt to decode the body based on the
'content-encoding' header.
:param enforce_content_length:
Enforce content length checking. Body returned by server must match
value of Content-Length header, if present. Otherwise, raise error.
"""
self.num_requests += 1
timeout_obj = self._get_timeout(timeout)
timeout_obj.start_connect()
conn.timeout = Timeout.resolve_default_timeout(timeout_obj.connect_timeout)
try:
# Trigger any extra validation we need to do.
try:
self._validate_conn(conn)
except (SocketTimeout, BaseSSLError) as e:
self._raise_timeout(err=e, url=url, timeout_value=conn.timeout)
raise
# _validate_conn() starts the connection to an HTTPS proxy
# so we need to wrap errors with 'ProxyError' here too.
except (
OSError,
NewConnectionError,
TimeoutError,
BaseSSLError,
CertificateError,
SSLError,
) as e:
new_e: Exception = e
if isinstance(e, (BaseSSLError, CertificateError)):
new_e = SSLError(e)
# If the connection didn't successfully connect to it's proxy
# then there
if isinstance(
new_e, (OSError, NewConnectionError, TimeoutError, SSLError)
) and (conn and conn.proxy and not conn.has_connected_to_proxy):
new_e = _wrap_proxy_error(new_e, conn.proxy.scheme)
raise new_e
# conn.request() calls http.client.*.request, not the method in
# urllib3.request. It also calls makefile (recv) on the socket.
try:
> conn.request(
method,
url,
body=body,
headers=headers,
chunked=chunked,
preload_content=preload_content,
decode_content=decode_content,
enforce_content_length=enforce_content_length,
)
E TypeError: request() got an unexpected keyword argument 'chunked'
body = None
chunked = False
conn = <docker.transport.unixconn.UnixHTTPConnection object at 0x7f647f67a8b0>
decode_content = False
enforce_content_length = True
headers = HTTPHeaderDict({'User-Agent': 'docker-sdk-python/3.7.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Length': '0'})
method = 'POST'
preload_content = False
response_conn = <docker.transport.unixconn.UnixHTTPConnection object at 0x7f647f67a8b0>
retries = Retry(total=0, connect=None, read=False, redirect=None, status=None)
self = <docker.transport.unixconn.UnixHTTPConnectionPool object at 0x7f647f78c670>
timeout = Timeout(connect=60, read=60, total=None)
timeout_obj = Timeout(connect=60, read=60, total=None)
url = '/v1.35/networks/prune'
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/urllib3/connectionpool.py:496: TypeError
Check failure on line 1 in system/indy-node-tests/test_ledger.py
github-actions / test_ledger Test Report
system/indy-node-tests/test_ledger.py.test_send_and_get_attrib_negative[None-{"key": "value"}-ENCRYPTED_STRING-None-False]
test setup failure
Raw output
tp = <class 'TypeError'>, value = None, tb = None
def reraise(tp, value, tb=None):
try:
if value is None:
value = tp()
if value.__traceback__ is not tb:
> raise value.with_traceback(tb)
tb = None
tp = <class 'TypeError'>
value = None
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/six.py:718:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/pytest_asyncio/plugin.py:97: in wrapper
return loop.run_until_complete(setup())
/usr/lib/python3.8/asyncio/base_events.py:616: in run_until_complete
return future.result()
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/pytest_asyncio/plugin.py:78: in setup
res = await gen_obj.__anext__()
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/async_generator/_impl.py:366: in step
return await ANextIter(self._it, start_fn, *args)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/async_generator/_impl.py:197: in __next__
return self._invoke(first_fn, *first_args)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/async_generator/_impl.py:209: in _invoke
result = fn(*args)
system/conftest.py:226: in docker_setup_and_teardown_module
await setup(nodes_num_module)
system/docker_setup.py:167: in setup
main(nodes_num=nodes_num)
system/docker_setup.py:130: in main
network_builder(NETWORK_SUBNET,
system/docker_setup.py:33: in network_builder
client.networks.prune()
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/docker/models/networks.py:214: in prune
return self.client.api.prune_networks(filters=filters)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/docker/utils/decorators.py:34: in wrapper
return f(self, *args, **kwargs)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/docker/api/network.py:174: in prune_networks
return self._result(self._post(url, params=params), True)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/docker/utils/decorators.py:46: in inner
return f(self, *args, **kwargs)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/docker/api/client.py:221: in _post
return self.post(url, **self._set_request_timeout(kwargs))
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/requests/sessions.py:637: in post
return self.request("POST", url, data=data, json=json, **kwargs)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/requests/sessions.py:589: in request
resp = self.send(prep, **send_kwargs)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/requests/sessions.py:703: in send
r = adapter.send(request, **kwargs)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/requests/adapters.py:486: in send
resp = conn.urlopen(
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/urllib3/connectionpool.py:793: in urlopen
response = self._make_request(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <docker.transport.unixconn.UnixHTTPConnectionPool object at 0x7f647f78c670>
conn = <docker.transport.unixconn.UnixHTTPConnection object at 0x7f647f67a8b0>
method = 'POST', url = '/v1.35/networks/prune', body = None
headers = HTTPHeaderDict({'User-Agent': 'docker-sdk-python/3.7.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Length': '0'})
retries = Retry(total=0, connect=None, read=False, redirect=None, status=None)
timeout = Timeout(connect=60, read=60, total=None), chunked = False
response_conn = <docker.transport.unixconn.UnixHTTPConnection object at 0x7f647f67a8b0>
preload_content = False, decode_content = False, enforce_content_length = True
def _make_request(
self,
conn: BaseHTTPConnection,
method: str,
url: str,
body: _TYPE_BODY | None = None,
headers: typing.Mapping[str, str] | None = None,
retries: Retry | None = None,
timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT,
chunked: bool = False,
response_conn: BaseHTTPConnection | None = None,
preload_content: bool = True,
decode_content: bool = True,
enforce_content_length: bool = True,
) -> BaseHTTPResponse:
"""
Perform a request on a given urllib connection object taken from our
pool.
:param conn:
a connection from one of our connection pools
:param method:
HTTP request method (such as GET, POST, PUT, etc.)
:param url:
The URL to perform the request on.
:param body:
Data to send in the request body, either :class:`str`, :class:`bytes`,
an iterable of :class:`str`/:class:`bytes`, or a file-like object.
:param headers:
Dictionary of custom headers to send, such as User-Agent,
If-None-Match, etc. If None, pool headers are used. If provided,
these headers completely replace any pool-specific headers.
:param retries:
Configure the number of retries to allow before raising a
:class:`~urllib3.exceptions.MaxRetryError` exception.
Pass ``None`` to retry until you receive a response. Pass a
:class:`~urllib3.util.retry.Retry` object for fine-grained control
over different types of retries.
Pass an integer number to retry connection errors that many times,
but no other types of errors. Pass zero to never retry.
If ``False``, then retries are disabled and any exception is raised
immediately. Also, instead of raising a MaxRetryError on redirects,
the redirect response will be returned.
:type retries: :class:`~urllib3.util.retry.Retry`, False, or an int.
:param timeout:
If specified, overrides the default timeout for this one
request. It may be a float (in seconds) or an instance of
:class:`urllib3.util.Timeout`.
:param chunked:
If True, urllib3 will send the body using chunked transfer
encoding. Otherwise, urllib3 will send the body using the standard
content-length form. Defaults to False.
:param response_conn:
Set this to ``None`` if you will handle releasing the connection or
set the connection to have the response release it.
:param preload_content:
If True, the response's body will be preloaded during construction.
:param decode_content:
If True, will attempt to decode the body based on the
'content-encoding' header.
:param enforce_content_length:
Enforce content length checking. Body returned by server must match
value of Content-Length header, if present. Otherwise, raise error.
"""
self.num_requests += 1
timeout_obj = self._get_timeout(timeout)
timeout_obj.start_connect()
conn.timeout = Timeout.resolve_default_timeout(timeout_obj.connect_timeout)
try:
# Trigger any extra validation we need to do.
try:
self._validate_conn(conn)
except (SocketTimeout, BaseSSLError) as e:
self._raise_timeout(err=e, url=url, timeout_value=conn.timeout)
raise
# _validate_conn() starts the connection to an HTTPS proxy
# so we need to wrap errors with 'ProxyError' here too.
except (
OSError,
NewConnectionError,
TimeoutError,
BaseSSLError,
CertificateError,
SSLError,
) as e:
new_e: Exception = e
if isinstance(e, (BaseSSLError, CertificateError)):
new_e = SSLError(e)
# If the connection didn't successfully connect to it's proxy
# then there
if isinstance(
new_e, (OSError, NewConnectionError, TimeoutError, SSLError)
) and (conn and conn.proxy and not conn.has_connected_to_proxy):
new_e = _wrap_proxy_error(new_e, conn.proxy.scheme)
raise new_e
# conn.request() calls http.client.*.request, not the method in
# urllib3.request. It also calls makefile (recv) on the socket.
try:
> conn.request(
method,
url,
body=body,
headers=headers,
chunked=chunked,
preload_content=preload_content,
decode_content=decode_content,
enforce_content_length=enforce_content_length,
)
E TypeError: request() got an unexpected keyword argument 'chunked'
body = None
chunked = False
conn = <docker.transport.unixconn.UnixHTTPConnection object at 0x7f647f67a8b0>
decode_content = False
enforce_content_length = True
headers = HTTPHeaderDict({'User-Agent': 'docker-sdk-python/3.7.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Length': '0'})
method = 'POST'
preload_content = False
response_conn = <docker.transport.unixconn.UnixHTTPConnection object at 0x7f647f67a8b0>
retries = Retry(total=0, connect=None, read=False, redirect=None, status=None)
self = <docker.transport.unixconn.UnixHTTPConnectionPool object at 0x7f647f78c670>
timeout = Timeout(connect=60, read=60, total=None)
timeout_obj = Timeout(connect=60, read=60, total=None)
url = '/v1.35/networks/prune'
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/urllib3/connectionpool.py:496: TypeError
Check failure on line 1 in system/indy-node-tests/test_ledger.py
github-actions / test_ledger Test Report
system/indy-node-tests/test_ledger.py.test_send_and_get_attrib_negative[e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855-None-ENCRYPTED_STRING-None-False]
test setup failure
Raw output
tp = <class 'TypeError'>, value = None, tb = None
def reraise(tp, value, tb=None):
try:
if value is None:
value = tp()
if value.__traceback__ is not tb:
> raise value.with_traceback(tb)
tb = None
tp = <class 'TypeError'>
value = None
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/six.py:718:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/pytest_asyncio/plugin.py:97: in wrapper
return loop.run_until_complete(setup())
/usr/lib/python3.8/asyncio/base_events.py:616: in run_until_complete
return future.result()
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/pytest_asyncio/plugin.py:78: in setup
res = await gen_obj.__anext__()
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/async_generator/_impl.py:366: in step
return await ANextIter(self._it, start_fn, *args)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/async_generator/_impl.py:197: in __next__
return self._invoke(first_fn, *first_args)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/async_generator/_impl.py:209: in _invoke
result = fn(*args)
system/conftest.py:226: in docker_setup_and_teardown_module
await setup(nodes_num_module)
system/docker_setup.py:167: in setup
main(nodes_num=nodes_num)
system/docker_setup.py:130: in main
network_builder(NETWORK_SUBNET,
system/docker_setup.py:33: in network_builder
client.networks.prune()
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/docker/models/networks.py:214: in prune
return self.client.api.prune_networks(filters=filters)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/docker/utils/decorators.py:34: in wrapper
return f(self, *args, **kwargs)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/docker/api/network.py:174: in prune_networks
return self._result(self._post(url, params=params), True)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/docker/utils/decorators.py:46: in inner
return f(self, *args, **kwargs)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/docker/api/client.py:221: in _post
return self.post(url, **self._set_request_timeout(kwargs))
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/requests/sessions.py:637: in post
return self.request("POST", url, data=data, json=json, **kwargs)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/requests/sessions.py:589: in request
resp = self.send(prep, **send_kwargs)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/requests/sessions.py:703: in send
r = adapter.send(request, **kwargs)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/requests/adapters.py:486: in send
resp = conn.urlopen(
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/urllib3/connectionpool.py:793: in urlopen
response = self._make_request(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <docker.transport.unixconn.UnixHTTPConnectionPool object at 0x7f647f78c670>
conn = <docker.transport.unixconn.UnixHTTPConnection object at 0x7f647f67a8b0>
method = 'POST', url = '/v1.35/networks/prune', body = None
headers = HTTPHeaderDict({'User-Agent': 'docker-sdk-python/3.7.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Length': '0'})
retries = Retry(total=0, connect=None, read=False, redirect=None, status=None)
timeout = Timeout(connect=60, read=60, total=None), chunked = False
response_conn = <docker.transport.unixconn.UnixHTTPConnection object at 0x7f647f67a8b0>
preload_content = False, decode_content = False, enforce_content_length = True
def _make_request(
self,
conn: BaseHTTPConnection,
method: str,
url: str,
body: _TYPE_BODY | None = None,
headers: typing.Mapping[str, str] | None = None,
retries: Retry | None = None,
timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT,
chunked: bool = False,
response_conn: BaseHTTPConnection | None = None,
preload_content: bool = True,
decode_content: bool = True,
enforce_content_length: bool = True,
) -> BaseHTTPResponse:
"""
Perform a request on a given urllib connection object taken from our
pool.
:param conn:
a connection from one of our connection pools
:param method:
HTTP request method (such as GET, POST, PUT, etc.)
:param url:
The URL to perform the request on.
:param body:
Data to send in the request body, either :class:`str`, :class:`bytes`,
an iterable of :class:`str`/:class:`bytes`, or a file-like object.
:param headers:
Dictionary of custom headers to send, such as User-Agent,
If-None-Match, etc. If None, pool headers are used. If provided,
these headers completely replace any pool-specific headers.
:param retries:
Configure the number of retries to allow before raising a
:class:`~urllib3.exceptions.MaxRetryError` exception.
Pass ``None`` to retry until you receive a response. Pass a
:class:`~urllib3.util.retry.Retry` object for fine-grained control
over different types of retries.
Pass an integer number to retry connection errors that many times,
but no other types of errors. Pass zero to never retry.
If ``False``, then retries are disabled and any exception is raised
immediately. Also, instead of raising a MaxRetryError on redirects,
the redirect response will be returned.
:type retries: :class:`~urllib3.util.retry.Retry`, False, or an int.
:param timeout:
If specified, overrides the default timeout for this one
request. It may be a float (in seconds) or an instance of
:class:`urllib3.util.Timeout`.
:param chunked:
If True, urllib3 will send the body using chunked transfer
encoding. Otherwise, urllib3 will send the body using the standard
content-length form. Defaults to False.
:param response_conn:
Set this to ``None`` if you will handle releasing the connection or
set the connection to have the response release it.
:param preload_content:
If True, the response's body will be preloaded during construction.
:param decode_content:
If True, will attempt to decode the body based on the
'content-encoding' header.
:param enforce_content_length:
Enforce content length checking. Body returned by server must match
value of Content-Length header, if present. Otherwise, raise error.
"""
self.num_requests += 1
timeout_obj = self._get_timeout(timeout)
timeout_obj.start_connect()
conn.timeout = Timeout.resolve_default_timeout(timeout_obj.connect_timeout)
try:
# Trigger any extra validation we need to do.
try:
self._validate_conn(conn)
except (SocketTimeout, BaseSSLError) as e:
self._raise_timeout(err=e, url=url, timeout_value=conn.timeout)
raise
# _validate_conn() starts the connection to an HTTPS proxy
# so we need to wrap errors with 'ProxyError' here too.
except (
OSError,
NewConnectionError,
TimeoutError,
BaseSSLError,
CertificateError,
SSLError,
) as e:
new_e: Exception = e
if isinstance(e, (BaseSSLError, CertificateError)):
new_e = SSLError(e)
# If the connection didn't successfully connect to it's proxy
# then there
if isinstance(
new_e, (OSError, NewConnectionError, TimeoutError, SSLError)
) and (conn and conn.proxy and not conn.has_connected_to_proxy):
new_e = _wrap_proxy_error(new_e, conn.proxy.scheme)
raise new_e
# conn.request() calls http.client.*.request, not the method in
# urllib3.request. It also calls makefile (recv) on the socket.
try:
> conn.request(
method,
url,
body=body,
headers=headers,
chunked=chunked,
preload_content=preload_content,
decode_content=decode_content,
enforce_content_length=enforce_content_length,
)
E TypeError: request() got an unexpected keyword argument 'chunked'
body = None
chunked = False
conn = <docker.transport.unixconn.UnixHTTPConnection object at 0x7f647f67a8b0>
decode_content = False
enforce_content_length = True
headers = HTTPHeaderDict({'User-Agent': 'docker-sdk-python/3.7.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Length': '0'})
method = 'POST'
preload_content = False
response_conn = <docker.transport.unixconn.UnixHTTPConnection object at 0x7f647f67a8b0>
retries = Retry(total=0, connect=None, read=False, redirect=None, status=None)
self = <docker.transport.unixconn.UnixHTTPConnectionPool object at 0x7f647f78c670>
timeout = Timeout(connect=60, read=60, total=None)
timeout_obj = Timeout(connect=60, read=60, total=None)
url = '/v1.35/networks/prune'
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/urllib3/connectionpool.py:496: TypeError
Check failure on line 1 in system/indy-node-tests/test_ledger.py
github-actions / test_ledger Test Report
system/indy-node-tests/test_ledger.py.test_send_and_get_attrib_negative[e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855-{"key": "value"}-ENCRYPTED_STRING-None-False]
test setup failure
Raw output
tp = <class 'TypeError'>, value = None, tb = None
def reraise(tp, value, tb=None):
try:
if value is None:
value = tp()
if value.__traceback__ is not tb:
> raise value.with_traceback(tb)
tb = None
tp = <class 'TypeError'>
value = None
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/six.py:718:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/pytest_asyncio/plugin.py:97: in wrapper
return loop.run_until_complete(setup())
/usr/lib/python3.8/asyncio/base_events.py:616: in run_until_complete
return future.result()
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/pytest_asyncio/plugin.py:78: in setup
res = await gen_obj.__anext__()
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/async_generator/_impl.py:366: in step
return await ANextIter(self._it, start_fn, *args)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/async_generator/_impl.py:197: in __next__
return self._invoke(first_fn, *first_args)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/async_generator/_impl.py:209: in _invoke
result = fn(*args)
system/conftest.py:226: in docker_setup_and_teardown_module
await setup(nodes_num_module)
system/docker_setup.py:167: in setup
main(nodes_num=nodes_num)
system/docker_setup.py:130: in main
network_builder(NETWORK_SUBNET,
system/docker_setup.py:33: in network_builder
client.networks.prune()
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/docker/models/networks.py:214: in prune
return self.client.api.prune_networks(filters=filters)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/docker/utils/decorators.py:34: in wrapper
return f(self, *args, **kwargs)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/docker/api/network.py:174: in prune_networks
return self._result(self._post(url, params=params), True)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/docker/utils/decorators.py:46: in inner
return f(self, *args, **kwargs)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/docker/api/client.py:221: in _post
return self.post(url, **self._set_request_timeout(kwargs))
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/requests/sessions.py:637: in post
return self.request("POST", url, data=data, json=json, **kwargs)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/requests/sessions.py:589: in request
resp = self.send(prep, **send_kwargs)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/requests/sessions.py:703: in send
r = adapter.send(request, **kwargs)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/requests/adapters.py:486: in send
resp = conn.urlopen(
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/urllib3/connectionpool.py:793: in urlopen
response = self._make_request(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <docker.transport.unixconn.UnixHTTPConnectionPool object at 0x7f647f78c670>
conn = <docker.transport.unixconn.UnixHTTPConnection object at 0x7f647f67a8b0>
method = 'POST', url = '/v1.35/networks/prune', body = None
headers = HTTPHeaderDict({'User-Agent': 'docker-sdk-python/3.7.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Length': '0'})
retries = Retry(total=0, connect=None, read=False, redirect=None, status=None)
timeout = Timeout(connect=60, read=60, total=None), chunked = False
response_conn = <docker.transport.unixconn.UnixHTTPConnection object at 0x7f647f67a8b0>
preload_content = False, decode_content = False, enforce_content_length = True
def _make_request(
self,
conn: BaseHTTPConnection,
method: str,
url: str,
body: _TYPE_BODY | None = None,
headers: typing.Mapping[str, str] | None = None,
retries: Retry | None = None,
timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT,
chunked: bool = False,
response_conn: BaseHTTPConnection | None = None,
preload_content: bool = True,
decode_content: bool = True,
enforce_content_length: bool = True,
) -> BaseHTTPResponse:
"""
Perform a request on a given urllib connection object taken from our
pool.
:param conn:
a connection from one of our connection pools
:param method:
HTTP request method (such as GET, POST, PUT, etc.)
:param url:
The URL to perform the request on.
:param body:
Data to send in the request body, either :class:`str`, :class:`bytes`,
an iterable of :class:`str`/:class:`bytes`, or a file-like object.
:param headers:
Dictionary of custom headers to send, such as User-Agent,
If-None-Match, etc. If None, pool headers are used. If provided,
these headers completely replace any pool-specific headers.
:param retries:
Configure the number of retries to allow before raising a
:class:`~urllib3.exceptions.MaxRetryError` exception.
Pass ``None`` to retry until you receive a response. Pass a
:class:`~urllib3.util.retry.Retry` object for fine-grained control
over different types of retries.
Pass an integer number to retry connection errors that many times,
but no other types of errors. Pass zero to never retry.
If ``False``, then retries are disabled and any exception is raised
immediately. Also, instead of raising a MaxRetryError on redirects,
the redirect response will be returned.
:type retries: :class:`~urllib3.util.retry.Retry`, False, or an int.
:param timeout:
If specified, overrides the default timeout for this one
request. It may be a float (in seconds) or an instance of
:class:`urllib3.util.Timeout`.
:param chunked:
If True, urllib3 will send the body using chunked transfer
encoding. Otherwise, urllib3 will send the body using the standard
content-length form. Defaults to False.
:param response_conn:
Set this to ``None`` if you will handle releasing the connection or
set the connection to have the response release it.
:param preload_content:
If True, the response's body will be preloaded during construction.
:param decode_content:
If True, will attempt to decode the body based on the
'content-encoding' header.
:param enforce_content_length:
Enforce content length checking. Body returned by server must match
value of Content-Length header, if present. Otherwise, raise error.
"""
self.num_requests += 1
timeout_obj = self._get_timeout(timeout)
timeout_obj.start_connect()
conn.timeout = Timeout.resolve_default_timeout(timeout_obj.connect_timeout)
try:
# Trigger any extra validation we need to do.
try:
self._validate_conn(conn)
except (SocketTimeout, BaseSSLError) as e:
self._raise_timeout(err=e, url=url, timeout_value=conn.timeout)
raise
# _validate_conn() starts the connection to an HTTPS proxy
# so we need to wrap errors with 'ProxyError' here too.
except (
OSError,
NewConnectionError,
TimeoutError,
BaseSSLError,
CertificateError,
SSLError,
) as e:
new_e: Exception = e
if isinstance(e, (BaseSSLError, CertificateError)):
new_e = SSLError(e)
# If the connection didn't successfully connect to it's proxy
# then there
if isinstance(
new_e, (OSError, NewConnectionError, TimeoutError, SSLError)
) and (conn and conn.proxy and not conn.has_connected_to_proxy):
new_e = _wrap_proxy_error(new_e, conn.proxy.scheme)
raise new_e
# conn.request() calls http.client.*.request, not the method in
# urllib3.request. It also calls makefile (recv) on the socket.
try:
> conn.request(
method,
url,
body=body,
headers=headers,
chunked=chunked,
preload_content=preload_content,
decode_content=decode_content,
enforce_content_length=enforce_content_length,
)
E TypeError: request() got an unexpected keyword argument 'chunked'
body = None
chunked = False
conn = <docker.transport.unixconn.UnixHTTPConnection object at 0x7f647f67a8b0>
decode_content = False
enforce_content_length = True
headers = HTTPHeaderDict({'User-Agent': 'docker-sdk-python/3.7.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Length': '0'})
method = 'POST'
preload_content = False
response_conn = <docker.transport.unixconn.UnixHTTPConnection object at 0x7f647f67a8b0>
retries = Retry(total=0, connect=None, read=False, redirect=None, status=None)
self = <docker.transport.unixconn.UnixHTTPConnectionPool object at 0x7f647f78c670>
timeout = Timeout(connect=60, read=60, total=None)
timeout_obj = Timeout(connect=60, read=60, total=None)
url = '/v1.35/networks/prune'
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/urllib3/connectionpool.py:496: TypeError
Check failure on line 1 in system/indy-node-tests/test_ledger.py
github-actions / test_ledger Test Report
system/indy-node-tests/test_ledger.py.test_send_and_get_attrib_negative[e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855-None-None-None-True]
test setup failure
Raw output
tp = <class 'TypeError'>, value = None, tb = None
def reraise(tp, value, tb=None):
try:
if value is None:
value = tp()
if value.__traceback__ is not tb:
> raise value.with_traceback(tb)
tb = None
tp = <class 'TypeError'>
value = None
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/six.py:718:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/pytest_asyncio/plugin.py:97: in wrapper
return loop.run_until_complete(setup())
/usr/lib/python3.8/asyncio/base_events.py:616: in run_until_complete
return future.result()
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/pytest_asyncio/plugin.py:78: in setup
res = await gen_obj.__anext__()
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/async_generator/_impl.py:366: in step
return await ANextIter(self._it, start_fn, *args)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/async_generator/_impl.py:197: in __next__
return self._invoke(first_fn, *first_args)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/async_generator/_impl.py:209: in _invoke
result = fn(*args)
system/conftest.py:226: in docker_setup_and_teardown_module
await setup(nodes_num_module)
system/docker_setup.py:167: in setup
main(nodes_num=nodes_num)
system/docker_setup.py:130: in main
network_builder(NETWORK_SUBNET,
system/docker_setup.py:33: in network_builder
client.networks.prune()
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/docker/models/networks.py:214: in prune
return self.client.api.prune_networks(filters=filters)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/docker/utils/decorators.py:34: in wrapper
return f(self, *args, **kwargs)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/docker/api/network.py:174: in prune_networks
return self._result(self._post(url, params=params), True)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/docker/utils/decorators.py:46: in inner
return f(self, *args, **kwargs)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/docker/api/client.py:221: in _post
return self.post(url, **self._set_request_timeout(kwargs))
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/requests/sessions.py:637: in post
return self.request("POST", url, data=data, json=json, **kwargs)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/requests/sessions.py:589: in request
resp = self.send(prep, **send_kwargs)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/requests/sessions.py:703: in send
r = adapter.send(request, **kwargs)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/requests/adapters.py:486: in send
resp = conn.urlopen(
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/urllib3/connectionpool.py:793: in urlopen
response = self._make_request(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <docker.transport.unixconn.UnixHTTPConnectionPool object at 0x7f647f78c670>
conn = <docker.transport.unixconn.UnixHTTPConnection object at 0x7f647f67a8b0>
method = 'POST', url = '/v1.35/networks/prune', body = None
headers = HTTPHeaderDict({'User-Agent': 'docker-sdk-python/3.7.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Length': '0'})
retries = Retry(total=0, connect=None, read=False, redirect=None, status=None)
timeout = Timeout(connect=60, read=60, total=None), chunked = False
response_conn = <docker.transport.unixconn.UnixHTTPConnection object at 0x7f647f67a8b0>
preload_content = False, decode_content = False, enforce_content_length = True
def _make_request(
self,
conn: BaseHTTPConnection,
method: str,
url: str,
body: _TYPE_BODY | None = None,
headers: typing.Mapping[str, str] | None = None,
retries: Retry | None = None,
timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT,
chunked: bool = False,
response_conn: BaseHTTPConnection | None = None,
preload_content: bool = True,
decode_content: bool = True,
enforce_content_length: bool = True,
) -> BaseHTTPResponse:
"""
Perform a request on a given urllib connection object taken from our
pool.
:param conn:
a connection from one of our connection pools
:param method:
HTTP request method (such as GET, POST, PUT, etc.)
:param url:
The URL to perform the request on.
:param body:
Data to send in the request body, either :class:`str`, :class:`bytes`,
an iterable of :class:`str`/:class:`bytes`, or a file-like object.
:param headers:
Dictionary of custom headers to send, such as User-Agent,
If-None-Match, etc. If None, pool headers are used. If provided,
these headers completely replace any pool-specific headers.
:param retries:
Configure the number of retries to allow before raising a
:class:`~urllib3.exceptions.MaxRetryError` exception.
Pass ``None`` to retry until you receive a response. Pass a
:class:`~urllib3.util.retry.Retry` object for fine-grained control
over different types of retries.
Pass an integer number to retry connection errors that many times,
but no other types of errors. Pass zero to never retry.
If ``False``, then retries are disabled and any exception is raised
immediately. Also, instead of raising a MaxRetryError on redirects,
the redirect response will be returned.
:type retries: :class:`~urllib3.util.retry.Retry`, False, or an int.
:param timeout:
If specified, overrides the default timeout for this one
request. It may be a float (in seconds) or an instance of
:class:`urllib3.util.Timeout`.
:param chunked:
If True, urllib3 will send the body using chunked transfer
encoding. Otherwise, urllib3 will send the body using the standard
content-length form. Defaults to False.
:param response_conn:
Set this to ``None`` if you will handle releasing the connection or
set the connection to have the response release it.
:param preload_content:
If True, the response's body will be preloaded during construction.
:param decode_content:
If True, will attempt to decode the body based on the
'content-encoding' header.
:param enforce_content_length:
Enforce content length checking. Body returned by server must match
value of Content-Length header, if present. Otherwise, raise error.
"""
self.num_requests += 1
timeout_obj = self._get_timeout(timeout)
timeout_obj.start_connect()
conn.timeout = Timeout.resolve_default_timeout(timeout_obj.connect_timeout)
try:
# Trigger any extra validation we need to do.
try:
self._validate_conn(conn)
except (SocketTimeout, BaseSSLError) as e:
self._raise_timeout(err=e, url=url, timeout_value=conn.timeout)
raise
# _validate_conn() starts the connection to an HTTPS proxy
# so we need to wrap errors with 'ProxyError' here too.
except (
OSError,
NewConnectionError,
TimeoutError,
BaseSSLError,
CertificateError,
SSLError,
) as e:
new_e: Exception = e
if isinstance(e, (BaseSSLError, CertificateError)):
new_e = SSLError(e)
# If the connection didn't successfully connect to it's proxy
# then there
if isinstance(
new_e, (OSError, NewConnectionError, TimeoutError, SSLError)
) and (conn and conn.proxy and not conn.has_connected_to_proxy):
new_e = _wrap_proxy_error(new_e, conn.proxy.scheme)
raise new_e
# conn.request() calls http.client.*.request, not the method in
# urllib3.request. It also calls makefile (recv) on the socket.
try:
> conn.request(
method,
url,
body=body,
headers=headers,
chunked=chunked,
preload_content=preload_content,
decode_content=decode_content,
enforce_content_length=enforce_content_length,
)
E TypeError: request() got an unexpected keyword argument 'chunked'
body = None
chunked = False
conn = <docker.transport.unixconn.UnixHTTPConnection object at 0x7f647f67a8b0>
decode_content = False
enforce_content_length = True
headers = HTTPHeaderDict({'User-Agent': 'docker-sdk-python/3.7.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Length': '0'})
method = 'POST'
preload_content = False
response_conn = <docker.transport.unixconn.UnixHTTPConnection object at 0x7f647f67a8b0>
retries = Retry(total=0, connect=None, read=False, redirect=None, status=None)
self = <docker.transport.unixconn.UnixHTTPConnectionPool object at 0x7f647f78c670>
timeout = Timeout(connect=60, read=60, total=None)
timeout_obj = Timeout(connect=60, read=60, total=None)
url = '/v1.35/networks/prune'
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/urllib3/connectionpool.py:496: TypeError
Check failure on line 1 in system/indy-node-tests/test_ledger.py
github-actions / test_ledger Test Report
system/indy-node-tests/test_ledger.py.test_send_and_get_attrib_negative[None-{"key": "value"}-None-None-True]
test setup failure
Raw output
tp = <class 'TypeError'>, value = None, tb = None
def reraise(tp, value, tb=None):
try:
if value is None:
value = tp()
if value.__traceback__ is not tb:
> raise value.with_traceback(tb)
tb = None
tp = <class 'TypeError'>
value = None
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/six.py:718:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/pytest_asyncio/plugin.py:97: in wrapper
return loop.run_until_complete(setup())
/usr/lib/python3.8/asyncio/base_events.py:616: in run_until_complete
return future.result()
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/pytest_asyncio/plugin.py:78: in setup
res = await gen_obj.__anext__()
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/async_generator/_impl.py:366: in step
return await ANextIter(self._it, start_fn, *args)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/async_generator/_impl.py:197: in __next__
return self._invoke(first_fn, *first_args)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/async_generator/_impl.py:209: in _invoke
result = fn(*args)
system/conftest.py:226: in docker_setup_and_teardown_module
await setup(nodes_num_module)
system/docker_setup.py:167: in setup
main(nodes_num=nodes_num)
system/docker_setup.py:130: in main
network_builder(NETWORK_SUBNET,
system/docker_setup.py:33: in network_builder
client.networks.prune()
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/docker/models/networks.py:214: in prune
return self.client.api.prune_networks(filters=filters)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/docker/utils/decorators.py:34: in wrapper
return f(self, *args, **kwargs)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/docker/api/network.py:174: in prune_networks
return self._result(self._post(url, params=params), True)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/docker/utils/decorators.py:46: in inner
return f(self, *args, **kwargs)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/docker/api/client.py:221: in _post
return self.post(url, **self._set_request_timeout(kwargs))
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/requests/sessions.py:637: in post
return self.request("POST", url, data=data, json=json, **kwargs)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/requests/sessions.py:589: in request
resp = self.send(prep, **send_kwargs)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/requests/sessions.py:703: in send
r = adapter.send(request, **kwargs)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/requests/adapters.py:486: in send
resp = conn.urlopen(
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/urllib3/connectionpool.py:793: in urlopen
response = self._make_request(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <docker.transport.unixconn.UnixHTTPConnectionPool object at 0x7f647f78c670>
conn = <docker.transport.unixconn.UnixHTTPConnection object at 0x7f647f67a8b0>
method = 'POST', url = '/v1.35/networks/prune', body = None
headers = HTTPHeaderDict({'User-Agent': 'docker-sdk-python/3.7.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Length': '0'})
retries = Retry(total=0, connect=None, read=False, redirect=None, status=None)
timeout = Timeout(connect=60, read=60, total=None), chunked = False
response_conn = <docker.transport.unixconn.UnixHTTPConnection object at 0x7f647f67a8b0>
preload_content = False, decode_content = False, enforce_content_length = True
def _make_request(
self,
conn: BaseHTTPConnection,
method: str,
url: str,
body: _TYPE_BODY | None = None,
headers: typing.Mapping[str, str] | None = None,
retries: Retry | None = None,
timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT,
chunked: bool = False,
response_conn: BaseHTTPConnection | None = None,
preload_content: bool = True,
decode_content: bool = True,
enforce_content_length: bool = True,
) -> BaseHTTPResponse:
"""
Perform a request on a given urllib connection object taken from our
pool.
:param conn:
a connection from one of our connection pools
:param method:
HTTP request method (such as GET, POST, PUT, etc.)
:param url:
The URL to perform the request on.
:param body:
Data to send in the request body, either :class:`str`, :class:`bytes`,
an iterable of :class:`str`/:class:`bytes`, or a file-like object.
:param headers:
Dictionary of custom headers to send, such as User-Agent,
If-None-Match, etc. If None, pool headers are used. If provided,
these headers completely replace any pool-specific headers.
:param retries:
Configure the number of retries to allow before raising a
:class:`~urllib3.exceptions.MaxRetryError` exception.
Pass ``None`` to retry until you receive a response. Pass a
:class:`~urllib3.util.retry.Retry` object for fine-grained control
over different types of retries.
Pass an integer number to retry connection errors that many times,
but no other types of errors. Pass zero to never retry.
If ``False``, then retries are disabled and any exception is raised
immediately. Also, instead of raising a MaxRetryError on redirects,
the redirect response will be returned.
:type retries: :class:`~urllib3.util.retry.Retry`, False, or an int.
:param timeout:
If specified, overrides the default timeout for this one
request. It may be a float (in seconds) or an instance of
:class:`urllib3.util.Timeout`.
:param chunked:
If True, urllib3 will send the body using chunked transfer
encoding. Otherwise, urllib3 will send the body using the standard
content-length form. Defaults to False.
:param response_conn:
Set this to ``None`` if you will handle releasing the connection or
set the connection to have the response release it.
:param preload_content:
If True, the response's body will be preloaded during construction.
:param decode_content:
If True, will attempt to decode the body based on the
'content-encoding' header.
:param enforce_content_length:
Enforce content length checking. Body returned by server must match
value of Content-Length header, if present. Otherwise, raise error.
"""
self.num_requests += 1
timeout_obj = self._get_timeout(timeout)
timeout_obj.start_connect()
conn.timeout = Timeout.resolve_default_timeout(timeout_obj.connect_timeout)
try:
# Trigger any extra validation we need to do.
try:
self._validate_conn(conn)
except (SocketTimeout, BaseSSLError) as e:
self._raise_timeout(err=e, url=url, timeout_value=conn.timeout)
raise
# _validate_conn() starts the connection to an HTTPS proxy
# so we need to wrap errors with 'ProxyError' here too.
except (
OSError,
NewConnectionError,
TimeoutError,
BaseSSLError,
CertificateError,
SSLError,
) as e:
new_e: Exception = e
if isinstance(e, (BaseSSLError, CertificateError)):
new_e = SSLError(e)
# If the connection didn't successfully connect to it's proxy
# then there
if isinstance(
new_e, (OSError, NewConnectionError, TimeoutError, SSLError)
) and (conn and conn.proxy and not conn.has_connected_to_proxy):
new_e = _wrap_proxy_error(new_e, conn.proxy.scheme)
raise new_e
# conn.request() calls http.client.*.request, not the method in
# urllib3.request. It also calls makefile (recv) on the socket.
try:
> conn.request(
method,
url,
body=body,
headers=headers,
chunked=chunked,
preload_content=preload_content,
decode_content=decode_content,
enforce_content_length=enforce_content_length,
)
E TypeError: request() got an unexpected keyword argument 'chunked'
body = None
chunked = False
conn = <docker.transport.unixconn.UnixHTTPConnection object at 0x7f647f67a8b0>
decode_content = False
enforce_content_length = True
headers = HTTPHeaderDict({'User-Agent': 'docker-sdk-python/3.7.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Length': '0'})
method = 'POST'
preload_content = False
response_conn = <docker.transport.unixconn.UnixHTTPConnection object at 0x7f647f67a8b0>
retries = Retry(total=0, connect=None, read=False, redirect=None, status=None)
self = <docker.transport.unixconn.UnixHTTPConnectionPool object at 0x7f647f78c670>
timeout = Timeout(connect=60, read=60, total=None)
timeout_obj = Timeout(connect=60, read=60, total=None)
url = '/v1.35/networks/prune'
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/urllib3/connectionpool.py:496: TypeError
Check failure on line 1 in system/indy-node-tests/test_ledger.py
github-actions / test_ledger Test Report
system/indy-node-tests/test_ledger.py.test_send_and_get_attrib_negative[None-None-ENCRYPTED_STRING-None-True]
test setup failure
Raw output
tp = <class 'TypeError'>, value = None, tb = None
def reraise(tp, value, tb=None):
try:
if value is None:
value = tp()
if value.__traceback__ is not tb:
> raise value.with_traceback(tb)
tb = None
tp = <class 'TypeError'>
value = None
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/six.py:718:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/pytest_asyncio/plugin.py:97: in wrapper
return loop.run_until_complete(setup())
/usr/lib/python3.8/asyncio/base_events.py:616: in run_until_complete
return future.result()
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/pytest_asyncio/plugin.py:78: in setup
res = await gen_obj.__anext__()
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/async_generator/_impl.py:366: in step
return await ANextIter(self._it, start_fn, *args)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/async_generator/_impl.py:197: in __next__
return self._invoke(first_fn, *first_args)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/async_generator/_impl.py:209: in _invoke
result = fn(*args)
system/conftest.py:226: in docker_setup_and_teardown_module
await setup(nodes_num_module)
system/docker_setup.py:167: in setup
main(nodes_num=nodes_num)
system/docker_setup.py:130: in main
network_builder(NETWORK_SUBNET,
system/docker_setup.py:33: in network_builder
client.networks.prune()
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/docker/models/networks.py:214: in prune
return self.client.api.prune_networks(filters=filters)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/docker/utils/decorators.py:34: in wrapper
return f(self, *args, **kwargs)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/docker/api/network.py:174: in prune_networks
return self._result(self._post(url, params=params), True)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/docker/utils/decorators.py:46: in inner
return f(self, *args, **kwargs)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/docker/api/client.py:221: in _post
return self.post(url, **self._set_request_timeout(kwargs))
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/requests/sessions.py:637: in post
return self.request("POST", url, data=data, json=json, **kwargs)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/requests/sessions.py:589: in request
resp = self.send(prep, **send_kwargs)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/requests/sessions.py:703: in send
r = adapter.send(request, **kwargs)
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/requests/adapters.py:486: in send
resp = conn.urlopen(
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/urllib3/connectionpool.py:793: in urlopen
response = self._make_request(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <docker.transport.unixconn.UnixHTTPConnectionPool object at 0x7f647f78c670>
conn = <docker.transport.unixconn.UnixHTTPConnection object at 0x7f647f67a8b0>
method = 'POST', url = '/v1.35/networks/prune', body = None
headers = HTTPHeaderDict({'User-Agent': 'docker-sdk-python/3.7.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Length': '0'})
retries = Retry(total=0, connect=None, read=False, redirect=None, status=None)
timeout = Timeout(connect=60, read=60, total=None), chunked = False
response_conn = <docker.transport.unixconn.UnixHTTPConnection object at 0x7f647f67a8b0>
preload_content = False, decode_content = False, enforce_content_length = True
def _make_request(
self,
conn: BaseHTTPConnection,
method: str,
url: str,
body: _TYPE_BODY | None = None,
headers: typing.Mapping[str, str] | None = None,
retries: Retry | None = None,
timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT,
chunked: bool = False,
response_conn: BaseHTTPConnection | None = None,
preload_content: bool = True,
decode_content: bool = True,
enforce_content_length: bool = True,
) -> BaseHTTPResponse:
"""
Perform a request on a given urllib connection object taken from our
pool.
:param conn:
a connection from one of our connection pools
:param method:
HTTP request method (such as GET, POST, PUT, etc.)
:param url:
The URL to perform the request on.
:param body:
Data to send in the request body, either :class:`str`, :class:`bytes`,
an iterable of :class:`str`/:class:`bytes`, or a file-like object.
:param headers:
Dictionary of custom headers to send, such as User-Agent,
If-None-Match, etc. If None, pool headers are used. If provided,
these headers completely replace any pool-specific headers.
:param retries:
Configure the number of retries to allow before raising a
:class:`~urllib3.exceptions.MaxRetryError` exception.
Pass ``None`` to retry until you receive a response. Pass a
:class:`~urllib3.util.retry.Retry` object for fine-grained control
over different types of retries.
Pass an integer number to retry connection errors that many times,
but no other types of errors. Pass zero to never retry.
If ``False``, then retries are disabled and any exception is raised
immediately. Also, instead of raising a MaxRetryError on redirects,
the redirect response will be returned.
:type retries: :class:`~urllib3.util.retry.Retry`, False, or an int.
:param timeout:
If specified, overrides the default timeout for this one
request. It may be a float (in seconds) or an instance of
:class:`urllib3.util.Timeout`.
:param chunked:
If True, urllib3 will send the body using chunked transfer
encoding. Otherwise, urllib3 will send the body using the standard
content-length form. Defaults to False.
:param response_conn:
Set this to ``None`` if you will handle releasing the connection or
set the connection to have the response release it.
:param preload_content:
If True, the response's body will be preloaded during construction.
:param decode_content:
If True, will attempt to decode the body based on the
'content-encoding' header.
:param enforce_content_length:
Enforce content length checking. Body returned by server must match
value of Content-Length header, if present. Otherwise, raise error.
"""
self.num_requests += 1
timeout_obj = self._get_timeout(timeout)
timeout_obj.start_connect()
conn.timeout = Timeout.resolve_default_timeout(timeout_obj.connect_timeout)
try:
# Trigger any extra validation we need to do.
try:
self._validate_conn(conn)
except (SocketTimeout, BaseSSLError) as e:
self._raise_timeout(err=e, url=url, timeout_value=conn.timeout)
raise
# _validate_conn() starts the connection to an HTTPS proxy
# so we need to wrap errors with 'ProxyError' here too.
except (
OSError,
NewConnectionError,
TimeoutError,
BaseSSLError,
CertificateError,
SSLError,
) as e:
new_e: Exception = e
if isinstance(e, (BaseSSLError, CertificateError)):
new_e = SSLError(e)
# If the connection didn't successfully connect to it's proxy
# then there
if isinstance(
new_e, (OSError, NewConnectionError, TimeoutError, SSLError)
) and (conn and conn.proxy and not conn.has_connected_to_proxy):
new_e = _wrap_proxy_error(new_e, conn.proxy.scheme)
raise new_e
# conn.request() calls http.client.*.request, not the method in
# urllib3.request. It also calls makefile (recv) on the socket.
try:
> conn.request(
method,
url,
body=body,
headers=headers,
chunked=chunked,
preload_content=preload_content,
decode_content=decode_content,
enforce_content_length=enforce_content_length,
)
E TypeError: request() got an unexpected keyword argument 'chunked'
body = None
chunked = False
conn = <docker.transport.unixconn.UnixHTTPConnection object at 0x7f647f67a8b0>
decode_content = False
enforce_content_length = True
headers = HTTPHeaderDict({'User-Agent': 'docker-sdk-python/3.7.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Length': '0'})
method = 'POST'
preload_content = False
response_conn = <docker.transport.unixconn.UnixHTTPConnection object at 0x7f647f67a8b0>
retries = Retry(total=0, connect=None, read=False, redirect=None, status=None)
self = <docker.transport.unixconn.UnixHTTPConnectionPool object at 0x7f647f78c670>
timeout = Timeout(connect=60, read=60, total=None)
timeout_obj = Timeout(connect=60, read=60, total=None)
url = '/v1.35/networks/prune'
/root/.local/share/virtualenvs/indy-test-automation-_hzu7UO4/lib/python3.8/site-packages/urllib3/connectionpool.py:496: TypeError