(十四)使用阿里云oss时连接错误

来源:互联网 发布:苏沉船 王晶 知乎 编辑:程序博客网 时间:2024/06/07 05:44

连接错误: The bucket you are attempting to access must be addressed using the specified endpoint. Please send all future requests to this endpoint


增加节点参数就好

        $client = OSSClient::factory(array(             'AccessKeyId' => $this->config['access_key_id'],             'AccessKeySecret' => $this->config['access_key_secret'],             'Endpoint' => 'http://oss-cn-beijing.aliyuncs.com', //节点的OSS内外网地址(主要是这里节点缺失了)           )); 

0 0