You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are trying to build an image using docker python package and while building image, urllib3 throwing the below exception, could you please suggest a solution?
File "C:\Projects\POC\OpenTelemetry-Issue\main.py", line 8, in <module>
image, logs = docker_client.images.build(
File "c:\Projects\POC\OpenTelemetry-Issue\venv\lib\site-packages\docker\models\images.py", line 298, in build
resp = self.client.api.build(**kwargs)
File "c:\Projects\POC\OpenTelemetry-Issue\venv\lib\site-packages\docker\api\build.py", line 264, in build
response = self._post(
File "c:\Projects\POC\OpenTelemetry-Issue\venv\lib\site-packages\docker\utils\decorators.py", line 46, in inner
return f(self, *args, **kwargs)
File "c:\Projects\POC\OpenTelemetry-Issue\venv\lib\site-packages\docker\api\client.py", line 233, in _post
return self.post(url, **self._set_request_timeout(kwargs))
File "c:\Projects\POC\OpenTelemetry-Issue\venv\lib\site-packages\requests\sessions.py", line 635, in post
return self.request("POST", url, data=data, json=json, **kwargs)
File "c:\Projects\POC\OpenTelemetry-Issue\venv\lib\site-packages\requests\sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "c:\Projects\POC\OpenTelemetry-Issue\venv\lib\site-packages\requests\sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "c:\Projects\POC\OpenTelemetry-Issue\venv\lib\site-packages\requests\adapters.py", line 489, in send
resp = conn.urlopen(
File "c:\Projects\POC\OpenTelemetry-Issue\venv\lib\site-packages\opentelemetry\instrumentation\urllib3\__init__.py", line 216, in instrumented_urlopen
request_size = 0 if body is None else len(body)
TypeError: object of type '_TemporaryFileWrapper' has no len()
Hi Team,
We are trying to build an image using docker python package and while building image, urllib3 throwing the below exception, could you please suggest a solution?
Steps to reproduce
Note: It was working fine with version 0.30 but failing with recent versions.
The text was updated successfully, but these errors were encountered: