开发者社区> 问答> 正文

OSS STS将官方提供的AppTokenServerDemojava版本中的main方法放入web项目中出错

如题,将demo的main方法放入到web项目中,报com.aliyuncs.exceptions.ClientException: SDK.ServerUnreachable : Speicified endpoint or uri is not valid.
同样的参数在main方法中可以得到正确的返回,debug到发生错误的代码在httpConn.getOutputStream().write(urlArray[1].getBytes());不知道是什么问题,求高手解答

展开
收起
liu412668794 2017-09-03 10:32:04 3695 0
1 条回答
写回答
取消 提交回答
  • endpoint 要填你服务器的endpoint 。
    2017-09-05 04:09:53
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
Web应用系统性能优化 立即下载
高性能Web架构之缓存体系 立即下载
PWA:移动Web的现在与未来 立即下载