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

时间校验问题 #63

Open
daiyuanhao opened this issue Sep 23, 2024 · 2 comments
Open

时间校验问题 #63

daiyuanhao opened this issue Sep 23, 2024 · 2 comments

Comments

@daiyuanhao
Copy link

daiyuanhao commented Sep 23, 2024

<Error>
  <Code>RequestTimeTooSkewed</Code>
  <Message>The difference between the request time and the current time is too large.</Message>
  <RequestId>66F10B88708A5D313649AD20</RequestId>
  <HostId>pixcheese-dev.pixcheese.com</HostId>
  <MaxAllowedSkewMilliseconds>900000</MaxAllowedSkewMilliseconds>
  <RequestTime>2024-09-22T06:32:38.000Z</RequestTime>
  <ServerTime>2024-09-23T06:32:40.000Z</ServerTime>
  <EC>0002-00000504</EC>
  <RecommendDoc>https://api.aliyun.com/troubleshoot?q=0002-00000504</RecommendDoc>
</Error>

当手机时间自定义比如调成昨天putObject会出403报错

查了问题,内部是通过DateTime.now()获取时间的,这个获取的是手机时间不是真实的,可能需要开放入口传参

@Notopponent
Copy link

楼主最后是如何解决这个问题的?交互提示用户修改系统时间?

@daiyuanhao
Copy link
Author

嗯嗯,交互上做了提示,阻止后续操作

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

2 participants