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
It turns out that boto_client.upload_fileobj() causes a provided file handle/object to be closed after upload. This is an unexpected and undocumented behaviour, which just caused an error in production because the MemoryFileStore or LocalFileStore do not behave the same way.
This behaviour could be 'fixed' in S3FileStore.store_file() by using a workaround described here.
Alternatively, the MemoryFileStore and LocalFileStore should be updated to emulate this behaviour for local testing
The text was updated successfully, but these errors were encountered:
It turns out that
boto_client.upload_fileobj()
causes a provided file handle/object to be closed after upload. This is an unexpected and undocumented behaviour, which just caused an error in production because theMemoryFileStore
orLocalFileStore
do not behave the same way.This behaviour could be 'fixed' in
S3FileStore.store_file()
by using a workaround described here.Alternatively, the
MemoryFileStore
andLocalFileStore
should be updated to emulate this behaviour for local testingThe text was updated successfully, but these errors were encountered: