Closed
Description
ClientError: An error occurred (403) when calling the HeadObject operation: Forbidden
File "django/core/handlers/exception.py", line 35, in inner
response = get_response(request)
File "s3file/middleware.py", line 15, in __call__
request.FILES.setlist(field_name, list(self.get_files_from_storage(paths)))
File "s3file/middleware.py", line 23, in get_files_from_storage
f = default_storage.open(path)
File "django/core/files/storage.py", line 33, in open
return self._open(name, mode)
File "storages/backends/s3boto3.py", line 464, in _open
f = S3Boto3StorageFile(name, mode, self)
File "storages/backends/s3boto3.py", line 72, in __init__
self.obj.load()
File "boto3/resources/factory.py", line 505, in do_action
response = action(self, *args, **kwargs)
File "boto3/resources/action.py", line 83, in __call__
response = getattr(parent.meta.client, operation_name)(**params)
File "botocore/client.py", line 320, in _api_call
return self._make_api_call(operation_name, kwargs)
File "botocore/client.py", line 623, in _make_api_call
raise error_class(parsed_response, operation_name)