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

[其他]oss上传400报错

级别: 新人
发帖
2
云币
3
E/RawMessage: <?xml version="1.0" encoding="UTF-8"?> ee%fqVQ8P  
    <Error> hxCvk/7sT  
      <Code>InvalidArgument</Code> B<j'm0a>B  
      <Message>The callback var is not expecten json.</Message> pw7[y^[Qg  
      <RequestId>5B5ACF9D77491D46B1953C59</RequestId> Ee`1F#c  
      <HostId>leehor.oss-cn-shenzhen.aliyuncs.com</HostId> *`ZH` V  
      <ArgumentName>callback-var</ArgumentName> Y3Vlp/"rB"  
      <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> :Ad &$e g+  
    </Error> D8 hr?:I9  
.e=C{  
8_T6_jL<  
新手上路;看到报错懵了。求助大神们。谢谢了
级别: 新人
发帖
2
云币
3
只看该作者 沙发  发表于: 07-27
Reoss上传400报错
回调部分代码 e^.Fa59  
格式有问题吗 -jMJAYjV  
mdRU^n  
ULQMG'P^D  
put.setCallbackParam(new HashMap<String, String>() { Fd0 %lnui  
                        { {mAU3x  
                            Log.e("回调", "上传回调: " + Config.callbackAddress); ki85!k=Q2  
                            put("callbackUrl","http://survey.three3.cn:8081/three_research/app/answer/oss/callback.htm"); S#+h$UVh  
                            //callbackBody可以自定义传入的信息 br|;'i%(  
                            put("callbackHost", "oss-cn-shenzhen.aliyuncs.com"); -|E!e.^7:  
                            put("callbackBodyType", "application/json"); {)-aSywe  
                            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}}"); Q=]w !I\  
                        } R~Ne|V2  
                    }); y-1 pR  
                    put.setCallbackVars(new HashMap<String, String>(){ -;'1^  
                        { xD6@Qk  
                            put("x:projectId",projectsDB.getPid()); l8?>>.<P=  
                            put("x:answerId",subjectsDB.getHt_id()); I :vs;-  
                            put("x:answer",answer); Y'ow  
                            put("x:description",explain); 7AObC4 g  
                            put("x:pictureCount",String.valueOf(imageSize)); Nqu>6^-z0  
                            put("x:audioCount",String.valueOf(recorderSize)); o_'p3nD  
                            put("x:number",String.valueOf(number)); &}A[x1x06)  
                            put("x:stage",stage); 3\B>lKhQ  
                            put("x:audio",audioFileName); Z4lO?S5%J  
                        } 5F~'gLH/F-  
                    });
发表主题 回复主题
« 返回列表上一主题下一主题