公众号上传图文消息素材接口(/cgi-bin/media/uploadnews)异常(必现)
发布于 5 年前 作者 li74 6674 次浏览 来自 官方Issues
接口地址: https://api.weixin.qq.com/cgi-bin/media/uploadnews?access_token=ACCESS_TOKEN
#请求命令
curl -X POST -H "Content-type:application/json" -H "host:api.weixin.qq.com" -H "scheme:https" -d '{"articles":[{"author":"","content":"<mp-miniprogram data-miniprogram-appid=\\\"\"wxef8d617b01946908\\\"\" data-miniprogram-title=\\\"\"感恩回馈活动\\\"\" data-miniprogram-imageurl=\\\"\"https://img.yzcdn.cn/upload_files/2020/12/08/FrwoJSIefis3P_gzrUlwaU_PU9Ea.jpg\\\"\" data-miniprogram-path=\\\"\"packages/goods/detail/index?alias=26uggereobr98\\\"\"></mp-miniprogram>","show_cover_pic":"0","thumb_media_id":"moSBOs8WCub6B7sJg1w3XetPH9gT_WiCnn02fBKciMVsVfZh2yHPhnJsFk-lyxbM","title":"嘿,骚年,吃我一记接化发"}]}' "https://api.weixin.qq.com/cgi-bin/media/uploadnews?access_token=40_H3EtDd-ZgiuUaOWip77TdrCa83CBUpduOJqCG2PV63PTkVdWdwIxVArj0k2FVTDi9C6tMKm8yo6yUDYjj0L0gSe4FCd4ycfB0IzbTCkN0bu3mpL6RcBNspk7g4URikBxBz0kr5P38fTMuELWSEVhAMDAMD"

#返回结果
{"errcode":45166,"errmsg":"invalid content hint: [3Ws9wA03328677] rid: 5fd1c27c-5c04a750-09b2a65c"}

appid: wxef8d617b01946908(认证服务号, 已开通微信支付, 已获得微信支付接口权限)

问题描述: 图文内容里添加了小程序卡片的标签, 接口就会报invalid content的错误, 移除就可以正常上传, 但是这个公众号应该是有资质上传图文里带上小程序卡片标签, 麻烦确认下什么导致的这个错误

回到顶部