开发者社区> 问答> 正文

oss上传回调

Caught an OSSException, which means your request made it to OSS, but was rejected with an error response for some reason.
Error Message: The callback configuration is not json format.
[ErrorCode]: InvalidArgument
[RequestId]: 58C2026ACA6F13C0FF81EA36
[HostId]: test-private.oss-cn-shenzhen-internal.aliyuncs.com
[ResponseError]:
<?xml version="1.0" encoding="UTF-8"?>
<Error>
  <Code>InvalidArgument</Code>
  <Message>The callback configuration is not json format.</Message>
  <RequestId>58C2026ACA6F13C0FF81EA36</RequestId>
  <HostId>flyaudio-ota-private.oss-cn-shenzhen-internal.aliyuncs.com</HostId>
  <ArgumentName>callback</ArgumentName>
  <ArgumentValue>{"callbackUrl":"http://ip/FileUpload/callback","callbackBody":"{"filename":${object},"size":${size}}","callbackBodyType":"application/json"}</ArgumentValue>
</Error>

望大神提交,java的

展开
收起
xnndwx 2017-03-10 10:02:34 3803 0
1 条回答
写回答
取消 提交回答
  • 主要看这两句,你的json包发的不对吧,对java也不是很熟,官方有这方面的例子吧;
    <Message>The callback configuration is not json format.</Message>
    <ArgumentValue>{"callbackUrl":"http://ip/FileUpload/callback","callbackBody":"{"filename":${object},"size":${size}}","callbackBodyType":"application/json"}</ArgumentValue>
    2017-03-11 18:50:08
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
OSS运维进阶实战手册 立即下载
《OSS运维基础实战手册》 立即下载
OSS运维基础实战手册 立即下载