阿里云
发表主题 回复主题
  • 1102阅读
  • 1回复

[其他]oss上传400报错

级别: 新人
发帖
2
云币
3
E/RawMessage: <?xml version="1.0" encoding="UTF-8"?> }UzO_&Z#6  
    <Error> MI!JZI$z5  
      <Code>InvalidArgument</Code> J{Z-4y  
      <Message>The callback var is not expecten json.</Message> l7]$Wc[  
      <RequestId>5B5ACF9D77491D46B1953C59</RequestId> J6!t"eB+  
      <HostId>leehor.oss-cn-shenzhen.aliyuncs.com</HostId>  MRB>(}  
      <ArgumentName>callback-var</ArgumentName> }}GBCXAf_  
      <ArgumentValue>{"x:answer":"否","x:pictureCount":"7","x:projectId":"16e76fd63c9b4e6a8cfa870801e8d8bb","x:stage":"1","x:number":"2","x:audio":null,"x:audioCount":"0","x:description":null,"x:answerId":"01d748207c9a43aa94175dac958c0633"}</ArgumentValue> t `4^cd5V  
    </Error> n9zS'VU  
by {G{M`X  
c-INVA)  
新手上路;看到报错懵了。求助大神们。谢谢了
级别: 新人
发帖
2
云币
3
只看该作者 沙发  发表于: 07-27
Reoss上传400报错
回调部分代码 vf@d (g  
格式有问题吗 Z`xz|:D+  
(k"oV>a|  
S^ ?OKqS  
put.setCallbackParam(new HashMap<String, String>() { ;G.m;5A  
                        { VI%879Z\e  
                            Log.e("回调", "上传回调: " + Config.callbackAddress); Vgs( feGs  
                            put("callbackUrl","http://survey.three3.cn:8081/three_research/app/answer/oss/callback.htm"); #K7i<Bf  
                            //callbackBody可以自定义传入的信息 k=[!{I  
                            put("callbackHost", "oss-cn-shenzhen.aliyuncs.com"); Gvt.m&_  
                            put("callbackBodyType", "application/json"); yI9l*'  
                            put("callbackBody","{\"projectId\":${x:projectId},\"answerId\":${x:answerId},\"description\":${x:description},\"answer\":${x:answer},\"pictureCount\":${x:pictureCount},\"audioCount\":${x:audioCount},\"number\":${x:number},\"stage\":${x:stage},\"audio\":${x:audio}}"); z9$x9u  
                        } "b*.>QuZ  
                    }); FTt7o'U  
                    put.setCallbackVars(new HashMap<String, String>(){ =&,zWNz)  
                        { 5(MWgC1  
                            put("x:projectId",projectsDB.getPid()); <Ebkb3_  
                            put("x:answerId",subjectsDB.getHt_id()); uL b- NxQ-  
                            put("x:answer",answer); I TJ>[c]x  
                            put("x:description",explain); f? F i{m  
                            put("x:pictureCount",String.valueOf(imageSize)); i{VjSWq  
                            put("x:audioCount",String.valueOf(recorderSize)); >qx~m>2|8]  
                            put("x:number",String.valueOf(number)); 76)(G/  
                            put("x:stage",stage); 3WJ> T1we  
                            put("x:audio",audioFileName); NV;5T3  
                        } 5v~Y>  
                    });
发表主题 回复主题
« 返回列表上一主题下一主题

限100 字节
如果您在写长篇帖子又不马上发表,建议存为草稿
 
验证问题: 阿里云官网域名是什么? 正确答案:www.aliyun.com
上一个 下一个