The following error was returned for a resource request to Object Storage Service (OSS):
[ResponseError]: RequestTimeTooSkewed The difference between the request time and the current time is too large.Cause
OSS rejects requests when the timestamp in the request header differs from the OSS server time by more than 15 minutes.
Check the system time of the device used to send the request and change the system time based on your time zone.
Solution
Step 1: Verify your time zone settings
OSS uses Greenwich Mean Time (GMT) as its reference time in all regions. Your device's time zone must be set to GMT or a GMT-relative time zone.
Check your current time zone
Windows: Go to Control Panel > Clock and Region > Set the time and date. The time zone drop-down shows your current setting—for example,
+08:00means GMT+08:00.Linux or Unix: Run
date -R. A+0800offset in the output indicates GMT+08:00.
Change the time zone
Follow the steps for your operating system if the time zone is not set to a GMT-based time zone.
Windows
Open Control Panel and click Date and Time or Clock and Region.
Click Change date and time, then click Change time zone.
Select
(UTC) Coordinated Universal Timeor any GMT time zone from the drop-down menu.Confirm the change and close Control Panel.
On newer Windows systems, click the date and time in the taskbar to access the same settings.
Linux
Open a terminal.
List available GMT time zones:
timedatectl list-timezones | grep GMTSet the time zone:
sudo timedatectl set-timezone GMT
Changing the time zone on an application server can affect running services. Exercise caution when you change the time zone in a production environment. After you change the time zone, restart your device or related services to apply the change.