在我自己的电脑上运行调用能够正常推送,将程序部署到服务器(服务器是linux系统,采用docker部署)上时就出现了下面的错误:
2017-02-11T03:27:53.160586698Z com.aliyuncs.exceptions.ClientException: InvalidTimeStamp.Expired : Specified time stamp or date value is expired.
2017-02-11T03:27:53.160627889Z RequestId : B4A41333-427B-4DDF-BFFF-33954655EDC8
2017-02-11T03:27:53.160635791Z at com.aliyuncs.DefaultAcsClient.parseAcsResponse(DefaultAcsClient.java:142)
2017-02-11T03:27:53.160641409Z at com.aliyuncs.DefaultAcsClient.getAcsResponse(DefaultAcsClient.java:91)
2017-02-11T03:27:53.160646229Z at cn.xhbds.utils.PushUtils.pushNoticeToAndroid(PushUtils.java:91)
2017-02-11T03:27:53.160651045Z at cn.xhbds.utils.PushUtils.pushNoticeToAndroidByAlias(PushUtils.java:58)
2017-02-11T03:27:53.160740914Z at cn.xhbds.utils.PushAlarm.pushAlarm(PushAlarm.java:77)
2017-02-11T03:27:53.160760800Z at cn.xhbds.service.redis.RedisPubSub.onMessage(RedisPubSub.java:89)
2017-02-11T03:27:53.160930886Z at redis.clients.jedis.JedisPubSub.process(JedisPubSub.java:129)
2017-02-11T03:27:53.160943140Z at redis.clients.jedis.JedisPubSub.proceed(JedisPubSub.java:102)
2017-02-11T03:27:53.160948642Z at redis.clients.jedis.Jedis.subscribe(Jedis.java:2628)
2017-02-11T03:27:53.160953296Z at cn.xhbds.MainSetup$1.run(MainSetup.java:40)
2017-02-11T03:27:53.160958201Z at java.lang.Thread.run(Thread.java:745)
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。