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

[其他]oss上传400报错

级别: 新人
发帖
2
云币
3
E/RawMessage: <?xml version="1.0" encoding="UTF-8"?> r2;)VS  
    <Error> @E@5/N6M  
      <Code>InvalidArgument</Code>  {]=oOy1  
      <Message>The callback var is not expecten json.</Message> 8ECBi(  
      <RequestId>5B5ACF9D77491D46B1953C59</RequestId> NY!"?Zko  
      <HostId>leehor.oss-cn-shenzhen.aliyuncs.com</HostId> FW7@7cVoF  
      <ArgumentName>callback-var</ArgumentName> Ci?A4q$.  
      <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> v a j  
    </Error> vynchZ+g]  
tyyfMA?'L;  
_ BUD~'Q5  
新手上路;看到报错懵了。求助大神们。谢谢了
级别: 新人
发帖
2
云币
3
只看该作者 沙发  发表于: 07-27
Reoss上传400报错
回调部分代码 Kgw_c:/'  
格式有问题吗 8rwXbYx x  
y~AF|Dk=  
N)H _4L  
put.setCallbackParam(new HashMap<String, String>() { ;YK{[$F  
                        { ;x=r.3OQy  
                            Log.e("回调", "上传回调: " + Config.callbackAddress); h-`*S&mZ  
                            put("callbackUrl","http://survey.three3.cn:8081/three_research/app/answer/oss/callback.htm"); v%6mH6V  
                            //callbackBody可以自定义传入的信息 n :P5m9T  
                            put("callbackHost", "oss-cn-shenzhen.aliyuncs.com"); hi(u L>\  
                            put("callbackBodyType", "application/json"); XdR^,;pWE  
                            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}}"); nB+ e2e&  
                        } t/HUG#W{  
                    }); |Q _]+[  
                    put.setCallbackVars(new HashMap<String, String>(){ ,{_;q:  
                        { 9?xc3F2EBD  
                            put("x:projectId",projectsDB.getPid()); ^s=p'&6  
                            put("x:answerId",subjectsDB.getHt_id()); MJ+]\(  
                            put("x:answer",answer); KASw3!.W  
                            put("x:description",explain); :O(<3"P/  
                            put("x:pictureCount",String.valueOf(imageSize)); u(`,7 o "  
                            put("x:audioCount",String.valueOf(recorderSize)); :',Q6j(s  
                            put("x:number",String.valueOf(number)); d^Jf(NE0Yo  
                            put("x:stage",stage); xep!.k x  
                            put("x:audio",audioFileName); ~Ue t)y<  
                        } [qEd`8V (  
                    });
发表主题 回复主题
« 返回列表上一主题下一主题

限100 字节
如果您在写长篇帖子又不马上发表,建议存为草稿
 
验证问题: 13 - 10 = ?
上一个 下一个