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

[其他]oss上传400报错

级别: 新人
发帖
2
云币
3
E/RawMessage: <?xml version="1.0" encoding="UTF-8"?> {%PgR){qR  
    <Error> 6f^q >YP  
      <Code>InvalidArgument</Code> \7elqX`.yY  
      <Message>The callback var is not expecten json.</Message> S1&Df%Ra  
      <RequestId>5B5ACF9D77491D46B1953C59</RequestId> '|~L9t  
      <HostId>leehor.oss-cn-shenzhen.aliyuncs.com</HostId> )&$p?kF  
      <ArgumentName>callback-var</ArgumentName> Sb,lY<=  
      <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> JA(M'&q4  
    </Error> *$/!.e  
oD?c]}3  
lAZn0EU  
新手上路;看到报错懵了。求助大神们。谢谢了
级别: 新人
发帖
2
云币
3
只看该作者 沙发  发表于: 07-27
Reoss上传400报错
回调部分代码 1,pg7L8H  
格式有问题吗 ,'>,N/JA  
KBSO^<7  
)cUFb:D*"  
put.setCallbackParam(new HashMap<String, String>() { =Ti[Q5SZ  
                        { !hS~\+E  
                            Log.e("回调", "上传回调: " + Config.callbackAddress); cq-UVk"Gl  
                            put("callbackUrl","http://survey.three3.cn:8081/three_research/app/answer/oss/callback.htm"); 2C@s-`b   
                            //callbackBody可以自定义传入的信息 v==]v2 -  
                            put("callbackHost", "oss-cn-shenzhen.aliyuncs.com"); x+B7r& #:  
                            put("callbackBodyType", "application/json"); G j9WUv[P  
                            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}}"); l:?w{'i$  
                        } | bWvQdN  
                    }); ;wF 0s  
                    put.setCallbackVars(new HashMap<String, String>(){ DuV@^qSbG.  
                        { $<QOMfY>  
                            put("x:projectId",projectsDB.getPid()); IJz=SV  
                            put("x:answerId",subjectsDB.getHt_id()); }US^GEs(  
                            put("x:answer",answer); :i8B'|DN5  
                            put("x:description",explain); cQOc^W  
                            put("x:pictureCount",String.valueOf(imageSize)); "T+oXK\B  
                            put("x:audioCount",String.valueOf(recorderSize)); ?r"QJa>  
                            put("x:number",String.valueOf(number)); G$T#ql  
                            put("x:stage",stage); ICxj$b  
                            put("x:audio",audioFileName); 6r3.%V.&  
                        } QW[ gDc  
                    });
发表主题 回复主题
« 返回列表上一主题下一主题

限100 字节
如果您提交过一次失败了,可以用”恢复数据”来恢复帖子内容
 
验证问题: 阿里云官网域名是什么? 正确答案:www.aliyun.com
上一个 下一个