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

[其他]oss上传400报错

级别: 新人
发帖
2
云币
3
E/RawMessage: <?xml version="1.0" encoding="UTF-8"?> Y73C5.dNcE  
    <Error> s1rCpzK0  
      <Code>InvalidArgument</Code> ixFi{_  
      <Message>The callback var is not expecten json.</Message> hM{bavd  
      <RequestId>5B5ACF9D77491D46B1953C59</RequestId> ]lbuy7xj63  
      <HostId>leehor.oss-cn-shenzhen.aliyuncs.com</HostId> -@s#uA h  
      <ArgumentName>callback-var</ArgumentName> M7T5 ~/4  
      <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{W-W<  
    </Error> E.TAbD&5(  
$X6h|?3U,  
Za9qjBH   
新手上路;看到报错懵了。求助大神们。谢谢了
级别: 新人
发帖
2
云币
3
只看该作者 沙发  发表于: 2018-07-27
Reoss上传400报错
回调部分代码 ! mHO$bQ"  
格式有问题吗 ^sw?gH*  
i@yC-))bY  
r&CiSMS*  
put.setCallbackParam(new HashMap<String, String>() { O-^Ma- }  
                        { )pa]ui\t  
                            Log.e("回调", "上传回调: " + Config.callbackAddress); #e"[^_C@!  
                            put("callbackUrl","http://survey.three3.cn:8081/three_research/app/answer/oss/callback.htm"); D~m*!w*  
                            //callbackBody可以自定义传入的信息 KoT\pY^7\  
                            put("callbackHost", "oss-cn-shenzhen.aliyuncs.com"); &Jj<h: *  
                            put("callbackBodyType", "application/json"); Y4-t7UlS;  
                            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}}"); Ac@VGT:9  
                        } occ7zcA  
                    }); R_C)  
                    put.setCallbackVars(new HashMap<String, String>(){ j%kncGS  
                        { 6m93puY`7  
                            put("x:projectId",projectsDB.getPid()); D7Z /H'|  
                            put("x:answerId",subjectsDB.getHt_id()); }#fbbtd  
                            put("x:answer",answer); .A|udZ,  
                            put("x:description",explain); 9;{C IMg&  
                            put("x:pictureCount",String.valueOf(imageSize)); 7.Op<  
                            put("x:audioCount",String.valueOf(recorderSize)); o&%g8=n%  
                            put("x:number",String.valueOf(number)); m0wDX*Qn  
                            put("x:stage",stage); ye&;(30Oq  
                            put("x:audio",audioFileName); T)/eeZ$  
                        } FrS]|=LJhX  
                    });
发表主题 回复主题
« 返回列表上一主题下一主题

限100 字节
如果您提交过一次失败了,可以用”恢复数据”来恢复帖子内容
 
验证问题: 27 - 2 = ?
上一个 下一个
      ×
      全新阿里云开发者社区, 去探索开发者的新世界吧!
      一站式的体验,更多的精彩!
      通过下面领域大门,一起探索新的技术世界吧~ (点击图标进入)