A
A
AleksAbramovWEB2020-05-17 14:13:41
Amazon Web Services
AleksAbramovWEB, 2020-05-17 14:13:41

How to synchronize application request time with S3 server time on laravel and open server?

Aws\S3\Exception\S3Exception
Error executing "ListObjects" on " https://my_bucket.s3.eu-west-2.amazonaws.com/?pre... "; AWS HTTP error: Client error: `GET https://mybucket.s3.eu-west-2.amazonaws.com/?pref... resulted in a `403 Forbidden` response: <?xml version="1.0" encoding ="UTF-8"?> RequestTimeTooSkewedThe difference between the reque (truncated...) RequestTimeTooSkewed (client): The difference between the request time and the current time is too large. - <?xml version="1.0" encoding="UTF-8"?> RequestTimeTooSkewedThe difference between the request time and the current time is too large.20200517T084713Z2020-05-17T10:47:

with Amazon S3 server time 2020-05-17T10:47:35Z.

I tried to change the server time both through the LARAVEL configs and through php.ini and through the console and the time
20200517T084713Z will not change, as there was a difference with the Amazon server 2 hours and remains.

The project is deployed locally on an open server.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
AleksAbramovWEB, 2020-05-17
@AleksAbramovWEB

everything turned out to be extremely simple) it was necessary to adjust the time on the PC))))
if anyone has other options, please write because the clock is now on the computer in English time))))))))))

I
Ivan Shumov, 2020-05-18
@inoise

It's called setting up synchronization via NTP. AWS uses NTP and writes about it in the documentation for this bug.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question