Error code:
Qiniu\http\errorresponse:
Body:null
duration:0.005
Error: "Could not resolve host:up.qiniu.com"
Headers: []
StatusCode:-1
Qiniu\http\errorurl: "Http://up.qiniu.com"
Ping up.qiniu.com can ping through
Ping up.qiniu.com
PING bc-gate-io.qiniu.com (106.38.227.29) bytes of data.
Bytes from 106.38.227.29:icmp_seq=1 ttl=50 time=161 ms
Bytes from 106.38.227.29:icmp_seq=2 ttl=50 time=180 ms
Bytes from 106.38.227.29:icmp_seq=3 ttl=50 time=180 ms
Bytes from 106.38.227.29:icmp_seq=4 ttl=50 time=164 ms
Bytes from 106.38.227.29:icmp_seq=5 ttl=50 time=167 ms
Bytes from 106.38.227.29:icmp_seq=7 ttl=50 time=164 ms
Why is this?
Reply content:
Error code:
Qiniu\http\errorresponse:
Body:null
duration:0.005
Error: "Could not resolve host:up.qiniu.com"
Headers: []
StatusCode:-1
Qiniu\http\errorurl: "Http://up.qiniu.com"
Ping up.qiniu.com can ping through
Ping up.qiniu.com
PING bc-gate-io.qiniu.com (106.38.227.29) bytes of data.
Bytes from 106.38.227.29:icmp_seq=1 ttl=50 time=161 ms
Bytes from 106.38.227.29:icmp_seq=2 ttl=50 time=180 ms
Bytes from 106.38.227.29:icmp_seq=3 ttl=50 time=180 ms
Bytes from 106.38.227.29:icmp_seq=4 ttl=50 time=164 ms
Bytes from 106.38.227.29:icmp_seq=5 ttl=50 time=167 ms
Bytes from 106.38.227.29:icmp_seq=7 ttl=50 time=164 ms
Why is this?
DNS Issues
Solution:
Vim/etc/resolvconf/resolv.conf.d/base
Add to:
NameServer 8.8.8.8
NameServer 114.114.114.114
Rm/etc/resolv.conf
Ln-s. /run/resolvconf/resolv.conf/etc/resolv.conf
Resolvconf-u
Service Networking Restart
/etc/init.d/networking restart
Modify the local DNS, modified to 8.8.8.8 or 114.114.114.114, test whether the normal upload can be, in addition Qiniu\Config.php , you can UPLOAD_HOST change to updx.qiniu.com , try to upload the normal.