为了账号安全,请及时绑定邮箱和手机立即绑定

使用pfop的avconcat时显示invalid remote url

使用pfop的avconcat时显示invalid remote url

汪汪一只猫 2019-02-26 18:12:33
pythonimport qiniu import base64 QINIU_ACCESS_KEY = 'xxx' QINIU_SECRET_KEY = 'xxx' QINIU_BUCKET_NAME = 'xxx' NOTIFY_URL = 'http://xxx/concate_notify/' q = qiniu.Auth(QINIU_ACCESS_KEY, QINIU_SECRET_KEY) pfop = qiniu.PersistentFop(q, QINIU_BUCKET_NAME, 'concatevideo', NOTIFY_URL) op = qiniu.build_op('avconcat', '1', format='mp4') op = op + "/" + base64.encodestring("201412082147805.mp4") print op ops = [op] ret, info = pfop.execute('201412061122198.mp4', ops, 1) print ret, info 测试的一个python脚本 xxx是为了发问题替换了的 然后再去http://api.qiniu.com/status/get/prefop?id=548b209b7823de40684f3e42查询 总是返回 json{ code: 3, desc: "The fop is failed", id: "548b209b7823de40684f3e42", inputKey: "201412061122198.mp4", items: [ { cmd: "avconcat/1/format/mp4/MjAxNDEyMDgyMTQ3ODA1Lm1wNA==", code: 3, desc: "The fop is failed", error: "execute fop cmd failed: invalid remote url" } ], pipeline: "1380342354.concatevideo", reqid: "zero2one.9DQAAE1-KtOEKK8T" } 但是我用POSTMAN去往我写的通知url发post请求是可以请求到的 有点奇怪 有人知道嘛, 提前谢啦
查看完整描述

1 回答

  • 1 回答
  • 0 关注
  • 624 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信