Skip to main content
Question

WinError 10054 error while applying metadata

  • Sep 22, 2024 5:25 AM UTC
  • 0 replies
  • 165 views
  • Translate All

Forum|alt.badge.img

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.