-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Error "The difference between the request time and the current time is too large" when upload file #13948
Comments
Hi @natuan62 this error is most likely caused by your local system time is out of sync. Please double check your local system date/time is correct and try again. |
Thanks for your reply. Many enduser has problem with time, we can't email to each end-user and instruction them set time, time-zone ... on mac-os or windows, ... mobile, etc. I see same problem But
|
Thanks for the additional info @natuan62 I'll dig into it. |
Hi @natuan62 I can confirm that Amplify JS v6 has built-in mechanism to auto-correct the clock skew via retying on the With S3, the You can do so by:
[
{
"ID": "S3CORSRuleId1",
"AllowedHeaders": [
"*"
],
"AllowedMethods": [
"GET",
"HEAD",
"PUT",
"POST",
"DELETE"
],
"AllowedOrigins": [
"*"
],
"ExposeHeaders": [
"x-amz-server-side-encryption",
"x-amz-request-id",
"ETag",
"Date"
],
"MaxAgeSeconds": 3000
}
] Could you give it try? I think we need to update the documentation to call this out. |
@HuiSF Thank you. I can confirm it works fine after |
Before opening, please confirm:
JavaScript Framework
Vue
Amplify APIs
Storage
Amplify Version
v6
Amplify Categories
storage
Backend
None
Environment information
Describe the bug
Expected behavior
Can upload file and return response successfully
Reproduction steps
Code Snippet
// Put your code below this line.
The text was updated successfully, but these errors were encountered: