【问题标题】:When trying to access the file stored in the Alibaba Cloud OSS using internet endpoint it throws error尝试使用 Internet 端点访问存储在阿里云 OSS 中的文件时,会抛出错误
【发布时间】:2019-02-22 00:48:21
【问题描述】:

当我尝试使用 Internet 端点访问存储在阿里云 OSS 中的文件时,它显示错误。

例如,我喜欢访问存储在新加坡地区 testbucket 中的 demo.jpg。

我发出了这样的命令:

http://oss-ap-southeast-1.aliyuncs.com/testbucket/demo.jpg

错误:

 This XML file does not appear to have any style information associated with it. The document tree is shown below.
    <Error>
    <Code>SecondLevelDomainForbidden</Code>
    <Message>
    The bucket you are attempting to access must be addressed using OSS third level domain.
    </Message>
    <RequestId>5C4F1FA099D9D60F934921C6</RequestId>
    <HostId>oss-ap-southeast-1.aliyuncs.com</HostId>
    </Error>

我错过了什么?

【问题讨论】:

    标签: alibaba-cloud


    【解决方案1】:

    具有内部名称的存储桶应该只能从阿里云内部资源访问。

    用例是:您有 ECS 实例,并希望将对象从 OSS 复制到 ECS。您可以使用internal存储桶端点,不会收取网络流量费。

    总结一下:

    • 内部存储桶仅供阿里云内部资源使用
    • 您无需为使用内部端点的网络流量付费 在阿里云内

    OSS Documentation

    【讨论】:

      【解决方案2】:

      您能否尝试将存储桶和对象访问级别更改为公开。这是为了查看错误是否是由于权限问题引起的

      【讨论】:

        猜你喜欢
        • 2019-03-25
        • 2018-05-18
        • 2019-04-03
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2017-03-19
        • 2022-01-17
        相关资源
        最近更新 更多