1 Answer
- Newest
- Most votes
- Most comments
0
I noticed that you're using both 'credentials' and 'profile' in your S3Client configuration. The 'profile' option is used to specify a profile in your AWS credentials file, and the 'credentials' option is used to specify your AWS credentials directly. You should use one or the other, not both. If you're providing your AWS credentials directly in your code, you should remove the 'profile' option.
answered 3 years ago
Relevant content
asked 6 years ago
asked 2 years ago

Just to answer my own query, the issue was due to PHP version 8. I have downgraded it to PHP 7.3 and the error is gone. Thanks guys