阿里云oss的文件无法使用URL访问,返回:This XML file does not appear to have any style information associated with it
2020-07-14 06:21
531 查看
问题描述
把静态文件放到阿里云oss,访问时返回一堆XML代码。
问题展示
This XML file does not appear to have any style information associated with it. The document tree is shown below.
This XML file does not appear to have any style information associated with it. The document tree is shown below. <Error> <Code>NoSuchKey</Code> <Message>The specified key does not exist.</Message> <RequestId>5EF02B4F7656A1C456028577</RequestId> <HostId>jianbangtest.oss-accelerate.aliyuncs.com</HostId> <Key>ccp.html</Key> </Error>
问题原因
读写权限设置了【私有】,私有权限对文件的所有访问操作需要进行身份验证,因此无法直接访问。
解决方法
把读写权限设置为【公共读】即可,公共读权限可以对文件进行匿名读。
解决操作
相关文章推荐
- AWS S3对象无法下载——This XML file does not appear to have any style information associated with it
- SVN :This XML file does not appear to have any style information associated with it.
- This XML file does not appear to have any style information associated with it.
- 文件页面头部This file does not belong to any project target, code insight features might not work properly
- Clion this file does not belong to any project target
- 安装Babel时报错 It is likely you do not have the permissions to access this file as the current user
- 使用JSTL tag时出现错误:According to TLD or attribute directive in tag file, attribute value does not accept any expressions
- The disk cannot be added to Cluster Shared Volumes because it does not have any suitable partitions
- linux下安装PHP的CI框架,出现Your view folder path does not appear to be set correctly. Please open the following file and correct this: i
- HTTP could not register URL http://+:8000/testservice/. Your process does not have access rights to this namespace 解决方案
- Clion this file does not belong to any project target问题解决方案
- 解决阿里云OSS使用URL无法访问图片
- 使用JSTL tag时出现错误:According to TLD or attribute directive in tag file, attribute value does not accept any expressions
- It appears as though you do not have permission to view information for any of the hosts you request
- class path resource [logConfig.xml] cannot be resolved to URL because it does not exist
- 使用JSTL 报According to TLD or attribute directive in tag file, attribute items does not accept any expressions
- 阿里云 esc 云服务器无缘无故的一次/usr/bin 目录丢失导致整个服务无法启动 # ./shutdown.sh ./shutdown.sh: line 41: dirname:command not found cannot find /catalina.sh the find /catalina.sh The file is absent or does not have execute
- HTTP could not register URL http://+:****/WCFService/. Your process does not have access rights to this namespace
- nagios报错 It appears as though you do not have permission to view information for any of the hosts yo