I can't understand what causes this error, I've checked the S3 bucket permissions and policies and everything seems fine.