Exception: ConnectionError: ('Connection aborted.', OSError(107, 'Transport endpoint is not connected'))

Eddynson Vega 147 Reputation points
2022-03-02T19:56:22.487+00:00

Hello good afternoon,

I have an Azure Durable Function that copies files from one storage account to another, but after an hour of copying, I get the following error in the activity function.

As they are copies of a large volume of data, I have to refresh the access_token after a while, since the files after an hour were created totally empty. Then add in the activity function the refresh token method and I get the following error.

Result: Failure
Exception: ConnectionError: ('Connection aborted.', OSError(107, 'Transport endpoint is not connected'))
Stack: File "/azure-functions-host/workers/python/3.9/LINUX/X64/azure_functions_worker/dispatcher.py", line 402, in _handle__invocation_request
call_result = await self._loop.run_in_executor(
File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/azure-functions-host/workers/python/3.9/LINUX/X64/azure_functions_worker/dispatcher.py", line 611, in _run_sync_func
return ExtensionManager.get_sync_invocation_wrapper(context,
File "/azure-functions-host/workers/python/3.9/LINUX/X64/azure_functions_worker/extension.py", line 215, in _raw_invocation_wrapper
result = function(**args)
File "/home/site/wwwroot/getdata/init.py", line 33, in main
response_dl_id = requests.request("GET", url_dl_id, headers=headers_dl_id, data=payload_dl_id)
File "/home/site/wwwroot/.python_packages/lib/site-packages/requests/api.py", line 61, in request
return session.request(method=method, url=url, **kwargs)
File "/home/site/wwwroot/.python_packages/lib/site-packages/requests/sessions.py", line 529, in request
resp = self.send(prep, **send_kwargs)
File "/home/site/wwwroot/.python_packages/lib/site-packages/requests/sessions.py", line 645, in send
r = adapter.send(request, **kwargs)
File "/home/site/wwwroot/.python_packages/lib/site-packages/requests/adapters.py", line 501, in send
raise ConnectionError(err, request=request)

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,680 questions
{count} vote