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

时间:2015-04-18 08:46:12   收藏:0   阅读:9485

连接错误: 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内外网地址(主要是这里节点缺失了)
           )); 

原文:http://blog.csdn.net/arthuralston2015/article/details/45103665

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!