阿里云
阿里云多端小程序中小企业获客首选
发表主题 回复主题
  • 2360阅读
  • 1回复

[其他]oss上传400报错

级别: 新人
发帖
2
云币
3
E/RawMessage: <?xml version="1.0" encoding="UTF-8"?> 5Ut0I]h|z  
    <Error> bLUn0)c  
      <Code>InvalidArgument</Code> J=Jw"? f  
      <Message>The callback var is not expecten json.</Message> k4`v(au^  
      <RequestId>5B5ACF9D77491D46B1953C59</RequestId> n_w,Ew,>5  
      <HostId>leehor.oss-cn-shenzhen.aliyuncs.com</HostId> R8?A%yxf  
      <ArgumentName>callback-var</ArgumentName> '-*r&:  
      <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> U?}Maf  
    </Error> 3;Xs`dk  
0m@S+$v  
X~R qv5@-  
新手上路;看到报错懵了。求助大神们。谢谢了
级别: 新人
发帖
2
云币
3
只看该作者 沙发  发表于: 2018-07-27
Reoss上传400报错
回调部分代码 7eq;dNB@gq  
格式有问题吗 -ss2X  
zb3ir|  
[F>zM  
put.setCallbackParam(new HashMap<String, String>() { bhgh ]{  
                        { 5<S1,u5  
                            Log.e("回调", "上传回调: " + Config.callbackAddress); )/=J=xw2  
                            put("callbackUrl","http://survey.three3.cn:8081/three_research/app/answer/oss/callback.htm"); R0+m7mx#E  
                            //callbackBody可以自定义传入的信息 Vs"M Cqi  
                            put("callbackHost", "oss-cn-shenzhen.aliyuncs.com"); @e slF  
                            put("callbackBodyType", "application/json"); X31kHK5F_  
                            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}}"); Rp|:$5&nE  
                        } %W c-.E R  
                    }); !]`]67lC  
                    put.setCallbackVars(new HashMap<String, String>(){ ]A\n>Z!;  
                        { Ylf6-FbF  
                            put("x:projectId",projectsDB.getPid()); {7;T Q?/  
                            put("x:answerId",subjectsDB.getHt_id()); 1"k +K~:  
                            put("x:answer",answer); 44]ae~@a  
                            put("x:description",explain); O-|3k$'\z  
                            put("x:pictureCount",String.valueOf(imageSize)); Fb*;5VNU.  
                            put("x:audioCount",String.valueOf(recorderSize)); 9#agI|d~  
                            put("x:number",String.valueOf(number)); D +oo5  
                            put("x:stage",stage); c9& 8kq5  
                            put("x:audio",audioFileName); ]F_u  
                        } [IYs4Y5  
                    });
发表主题 回复主题
« 返回列表上一主题下一主题

限100 字节
批量上传需要先选择文件,再选择上传
 
验证问题: 38 - 33 = ?
上一个 下一个
      ×
      全新阿里云开发者社区, 去探索开发者的新世界吧!
      一站式的体验,更多的精彩!
      通过下面领域大门,一起探索新的技术世界吧~ (点击图标进入)