java - 七牛简单上传就抛出的异常
黄舟
黄舟 2017-04-18 09:18:47
0
1
252

// 请求失败时打印的异常的信息
{ResponseInfo:com.qiniu.http.Response@6da68d,status:400, reqId:WxMAALQ6m6-3dFoU, xlog:UP:1/400, xvia:, adress:up.qiniu.com/183.136.139.10:80, duration:0.000000 s, error:incorrect zone, please use up-z1.qiniu.com}
//响应的文本信息
{"error":"incorrect zone, please use up-z1.qiniu.com"}

我的基本配置:
//要上传的空间, 空间名称的确已经创建
String bucketname = "demo";
//上传到七牛后保存的文件名
String key = "my-java.png";
//上传文件的路径
String FilePath = "C:/Users/Desktop/QQ截图20160620181506.png";

黄舟
黄舟

人生最曼妙的风景,竟是内心的淡定与从容!

reply all (1)
巴扎黑

The storage area selected when creating the spatial domain is not supported. There will be no exception when using the South China area.

    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template
    About us Disclaimer Sitemap
    php.cn:Public welfare online PHP training,Help PHP learners grow quickly!