Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning: S3::getBucket(): [RequestTimeTooSkewed] The difference between the request time and the current time is too large #225

Open
kooshana opened this issue Nov 8, 2019 · 0 comments
Assignees

Comments

@kooshana
Copy link

kooshana commented Nov 8, 2019

I configured AWS S3 storage for my web application.It is working in local host. After moving the files into remote server. I am getting the following error.
Notice: Undefined property: stdClass::$body in /data/www/{rootfolder}/releases/{foldernumber}/S3.php on line 877

Warning: S3::getBucket(): [RequestTimeTooSkewed] The difference between the request time and the current time is too large. in /data/www/{rootfolder}/releases/{foldernumber}/S3.php on line 126

My code looks like this: 
$bucket="Bucketname";require_once("S3.php");$awsAccessKey = 'ACCESSKEY';
$awsSecretKey = 'SECRET KEY';
$s3 = new S3($awsAccessKey, $awsSecretKey);
$s= $s3->listBuckets();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants