Closed tianlu1677 closed 7 years ago
我按照官网上的文档写的
code, result, response_headers = Qiniu::Storage.fetch(bucket, target_url, key)
结果返回
code, result, response_headers = Qiniu::Storage.fetch(bucket, target_url, key) W, [2016-11-09T17:59:45.754746 #44339] WARN -- : HTTP status code 478 => Qiniu::HTTP.post('http://iovip.qbox.me/fetch/cWRhaWx5dGVzdA==/to/aHR0cDovL3Rlc3RpbWcucWRhaWx5LmNvbS9hcnRpY2xlL2FydGljbGVfc2hvdy8yMDE2MDcwMzE4MDk1MWdxeXg3TUFhaGRTNHZVQ0wuanBnOnFpbml1LnBuZw==') => [478, {"error"=>"httpGet url failed: E502"}, {"server"=>["nginx"], "date"=>["Wed, 09 Nov 2016 09:59:45 GMT"], "content-type"=>["application/json"], "content-length"=>["36"], "connection"=>["close"], "x-log"=>["QINIUPROXY:3/502;gS.h:4;IO:4/478"], "x-reqid"=>["sT4AAOAMl7a0WIUU"]}]
这个是表明 fetch的原地址有问题,无法下载
我按照官网上的文档写的
结果返回