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

[其他]oss上传400报错

级别: 新人
发帖
2
云币
3
E/RawMessage: <?xml version="1.0" encoding="UTF-8"?> EN` -- ^  
    <Error> !FZb3U@  
      <Code>InvalidArgument</Code> \;I%>yOIu  
      <Message>The callback var is not expecten json.</Message> f I`6]?W  
      <RequestId>5B5ACF9D77491D46B1953C59</RequestId> 25t2tj@S  
      <HostId>leehor.oss-cn-shenzhen.aliyuncs.com</HostId> zPWG^  
      <ArgumentName>callback-var</ArgumentName> V9I5/~0c  
      <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> Dsw(ti`@  
    </Error> <`9Q{~*=t  
4 (& W>E  
NwIl~FNK  
新手上路;看到报错懵了。求助大神们。谢谢了
级别: 新人
发帖
2
云币
3
只看该作者 沙发  发表于: 07-27
Reoss上传400报错
回调部分代码 z ,87;4-  
格式有问题吗 v2gK(&?  
[~` ; .7~  
|+mhYq|`  
put.setCallbackParam(new HashMap<String, String>() { ;}#tm9S;  
                        { s+2\uMwf*  
                            Log.e("回调", "上传回调: " + Config.callbackAddress); *Tl"~)'t~  
                            put("callbackUrl","http://survey.three3.cn:8081/three_research/app/answer/oss/callback.htm"); rOm)s'  
                            //callbackBody可以自定义传入的信息 fa8vY  
                            put("callbackHost", "oss-cn-shenzhen.aliyuncs.com"); ZtlF]k:MV  
                            put("callbackBodyType", "application/json"); f7)}A/$4+  
                            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}}"); w{?nX6a@p  
                        } ) 2wof(  
                    }); [(B A:x1  
                    put.setCallbackVars(new HashMap<String, String>(){ ib/B!?/  
                        { 57Y(_h:  
                            put("x:projectId",projectsDB.getPid()); Fx~=mYU  
                            put("x:answerId",subjectsDB.getHt_id()); ^DS9D:oE  
                            put("x:answer",answer); KXL]Qw FN  
                            put("x:description",explain); ;El"dqH   
                            put("x:pictureCount",String.valueOf(imageSize)); _&FcHwRy  
                            put("x:audioCount",String.valueOf(recorderSize)); dB ?+-aE  
                            put("x:number",String.valueOf(number)); w}zl=w{G  
                            put("x:stage",stage); ^2mmgN   
                            put("x:audio",audioFileName); BEPeK  
                        } \om$%FUP  
                    });
发表主题 回复主题
« 返回列表上一主题下一主题

限100 字节
如果您提交过一次失败了,可以用”恢复数据”来恢复帖子内容
 
验证问题: 86 - 42 = ?
上一个 下一个