oss-[Client]Unable to execute HTTP request: UnknownHost

阿里云oss使用报错
1、[Client]Unable to execute HTTP request: UnknownHost
oss-[Client]Unable to execute HTTP request: UnknownHost_第1张图片
解决:本地网络问题

2、上传报错

<[Server]Unable to execute HTTP request: You have no right to access this object because of bucket acl.
[ErrorCode]: AccessDenied
[RequestId]: 5B2B076B
[HostId]: oss-xxx-s.ddss-cn-shanghai.aliyuncs.com
[ResponseError]:

AccessDenied You have no right to access this object because of bucket acl. 5B2B076B oss-xxx-s.ddss-cn-shanghai.aliyuncs.com

解决:阿里云的bucket,配置权限为 公共读写

你可能感兴趣的:(springBoot,oss-UnknownHost,阿里云)