This error comes from PHP, not Nginx. Also, it seems that the referred code is communicating with S3 and not with Cloudinary.