Skip to main content
Question

WinError 10054 error while applying metadata

  • September 22, 2024
  • 0 replies
  • 51 views

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. 

0 replies

Be the first to reply!