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
But response is a tuple of objects Response and FileMetadata, so I'm getting next error:
File "/.../myapp/mailing.py", line 50, in distribute
part.set_payload(offer_file.file.read())
File "/.../python3.6/site-packages/django/core/files/utils.py", line 16, in <lambda>
read = property(lambda self: self.file.read)
File "/.../python3.6/site-packages/django/core/files/utils.py", line 16, in <lambda>
read = property(lambda self: self.file.read)
File "/.../python3.6/site-packages/storages/backends/dropbox.py", line 45, in file
copyfileobj(response, self._file)
File "/.../python3.6/shutil.py", line 79, in copyfileobj
buf = fsrc.read(length)
AttributeError: 'tuple' object has no attribute 'read'
The text was updated successfully, but these errors were encountered:
Version 1.7.1
Trying to get bytes from
DropboxFile
. It has propertyfile
:But
response
is a tuple of objectsResponse
andFileMetadata
, so I'm getting next error:The text was updated successfully, but these errors were encountered: