Skip to main content
New Member
Sep 22, 2024 5:25 AM UTC
Question

WinError 10054 error while applying metadata

Hello,

The application is attempting to delete the exiting file’s metadata and create new metadata instance for the same file. This periodically results in WinError 10054: An existing connection was forcibly closed by the remote host. 

try:

client.file(file_id=cloud_file.id).metadata().delete()
except:
pass

applied_metadata = client.file(file_id=cloud_file.id).metadata().create(file['metadata'])

Question is, what could be causing this error, is this a server configuration issue, API call timing, etc.