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

[其他]oss上传400报错

级别: 新人
发帖
2
云币
3
E/RawMessage: <?xml version="1.0" encoding="UTF-8"?> [o=v"s't)  
    <Error> /k(KA [bS  
      <Code>InvalidArgument</Code> 6-@ X  
      <Message>The callback var is not expecten json.</Message> CR-6}T   
      <RequestId>5B5ACF9D77491D46B1953C59</RequestId> V+mTo^  
      <HostId>leehor.oss-cn-shenzhen.aliyuncs.com</HostId> +([ iCL  
      <ArgumentName>callback-var</ArgumentName> 'Zdjd]  
      <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> /OpVr15  
    </Error> 72gQ<Si  
{ L(Q|bB  
FBYA d@="2  
新手上路;看到报错懵了。求助大神们。谢谢了
级别: 新人
发帖
2
云币
3
只看该作者 沙发  发表于: 07-27
Reoss上传400报错
回调部分代码 D2`tWRm0  
格式有问题吗 |=7ouFl  
!vU$^>zo~  
!H`Q^Xf}  
put.setCallbackParam(new HashMap<String, String>() { w7H.&7rF  
                        { J Cu3,O!q  
                            Log.e("回调", "上传回调: " + Config.callbackAddress); km; M!}D  
                            put("callbackUrl","http://survey.three3.cn:8081/three_research/app/answer/oss/callback.htm"); ps#+i  
                            //callbackBody可以自定义传入的信息 tdTD!'  
                            put("callbackHost", "oss-cn-shenzhen.aliyuncs.com");  q$$:<*Uy  
                            put("callbackBodyType", "application/json"); 1sL#XB$@N  
                            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}}"); %-y%Q.;k ?  
                        } ,"PKGd]^  
                    }); Y"G U"n~  
                    put.setCallbackVars(new HashMap<String, String>(){ 8]6u]3q#  
                        { S4j`=<T,  
                            put("x:projectId",projectsDB.getPid()); y9?~^pTx  
                            put("x:answerId",subjectsDB.getHt_id()); ?=:wIMV  
                            put("x:answer",answer); (vCMff/ Y1  
                            put("x:description",explain); stDrF1{  
                            put("x:pictureCount",String.valueOf(imageSize)); FhZ^/= As  
                            put("x:audioCount",String.valueOf(recorderSize)); yub|   
                            put("x:number",String.valueOf(number)); m>C}T  
                            put("x:stage",stage); ;}!hgyq  
                            put("x:audio",audioFileName); m_Owe/BC#m  
                        } 'iM;e K  
                    });
发表主题 回复主题
« 返回列表上一主题下一主题

限100 字节
批量上传需要先选择文件,再选择上传
 
验证问题: ECS是阿里云提供的什么服务? 正确答案:云服务器
上一个 下一个