string(40) "Couldn't resolve host 'upload.qiniu.com'" ["Reqid"]=> NULL ["Details"]=> NULL ["Code"]=> int(0) }"/> string(40) "Couldn't resolve host 'upload.qiniu.com'" ["Reqid"]=> NULL ["Details"]=> NULL ["Code"]=> int(0) }">
Maison >développement back-end >tutoriel php >我用php上传图片在本地测试没问题,在服务器上报错了,是什么原因?
object(Qiniu_Error)#5 (4) { ["Err"]=> string(40) "Couldn't resolve host 'upload.qiniu.com'" ["Reqid"]=> NULL ["Details"]=> NULL ["Code"]=> int(0) }
object(Qiniu_Error)#5 (4) { ["Err"]=> string(40) "Couldn't resolve host 'upload.qiniu.com'" ["Reqid"]=> NULL ["Details"]=> NULL ["Code"]=> int(0) }
服务器 DNS 问题。
绑hosts
1、你是否配置了host
2、接口路径是否写死了,没有随调试环境改变而动态变。
提示说得很清楚了
检查一下upload.qiniu.com的域名解析