开发者社区> 问答> 正文

上传图片时提示时间间隔问题

       求助大神,上传图片到bucket时收到403 forbidden 错误 提示上传时间和服务器时间相差太久。
但是看收到的数据包,请求时间是当前时间,但是aliyun服务器的时间却比当前时间早了8个小时,这是什么问题?

展开
收起
圆小凉 2017-06-24 14:35:54 3154 0
2 条回答
写回答
取消 提交回答
  • Re上传图片时提示时间间隔问题
    我似乎遇到过这个问题,阿里采用的是UTC协调时,不知道是不是这个原因。
    2017-06-28 15:36:19
    赞同 展开评论 打赏
  • Re上传图片时提示时间间隔问题
    收到的http包如下:

    HTTP/1.1 403 Forbidden
    Server: AliyunOSS
    Date: Sat, 24 Jun 2017 06:18:42 GMT
    Content-Type: application/xml
    Content-Length: 470
    Connection: keep-alive
    x-oss-request-id: 594E044263FDD01FFA6CAAF5
    x-oss-server-time: 16

    <?xml version="1.0" encoding="UTF-8"?>
    <Error>
      <Code>RequestTimeTooSkewed</Code>
      <Message>The difference between the request time and the current time is too large.</Message>
      <RequestId>594E044263FDD01FFA6CAAF5</RequestId>
      <HostId>xiaofei1210.oss-cn-shanghai.aliyuncs.com</HostId>
      <MaxAllowedSkewMilliseconds>900000</MaxAllowedSkewMilliseconds>
      <RequestTime>2017-06-24T14:18:40.000Z</RequestTime>
      <ServerTime>2017-06-24T06:18:42.000Z</ServerTime>
    </Error>
    2017-06-24 14:56:04
    赞同 展开评论 打赏
问答地址:
问答排行榜
最热
最新

相关电子书

更多
低代码开发师(初级)实战教程 立即下载
冬季实战营第三期:MySQL数据库进阶实战 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载