小程序
小游戏
企业微信
微信支付
扫描小程序码分享
使用公众号客服消息接口批量给粉丝发送客服消息时,有部分用户会提示:{"errcode":40007,"errmsg":"invalid media_id hint: [QkEXna06893119]"}
确认media_id可用且是永久素材。
参数信息:
media_id:-kJIfuXIKSlh4We4anV1QreSg2_38W5Z23kvTSlQEqg
app_id:wx0aed604bd4e2ee98
发送时间:2020-06-19 15:44:52
2 个回答
加粗
标红
插入代码
插入链接
插入图片
上传视频
你好,对比下接收成功和接收报错的请求信息是否有差异?也请提供下具体的请求包,返回包等信息。
你好,麻烦通过点击下方“反馈信息”按钮,提供出现问题的。
发生时间 : 20-06-29 15:01:35
请求体:
{"host":"https://api.weixin.qq.com","port":"","uri":"/cgi-bin/message/custom/send?access_token=34_Fx9hmnpTiOMJEpcdKMfXiXMt814dvYkIguHbHzr5PZWSnwZy_MXzoE4hBBvQRx1qI6etJ3VIDHO20N9hSWBd_EralvtjraX7_TSK3SuVgGmBDR36Br4QqdLWvhVPSZRwXNlYP4NAvPEHlUJCZLLgAJDFRR","method":"post","data":{"touser":"o51lJwOrfLXQM65iePS8havLD434","msgtype":"image","image":{"media_id":"-xQsCtdms1E0Iy4pz5_xp4VYnHMB8V59bcICJrZbb5I"}},"timeout":5000,"ssl":false,"httpheader":{"contenttype":"application/json"}}
响应体:
{"errcode":40007,"errmsg":"invalid media_id hint: [xPBOva00952974]"}
成功的请求(和上一条回复只有touser参数不一样)
请求时间:20-06-29 15:01:35
请求体:
{"host":"https://api.weixin.qq.com","port":"","uri":"/cgi-bin/message/custom/send?access_token=34_Fx9hmnpTiOMJEpcdKMfXiXMt814dvYkIguHbHzr5PZWSnwZy_MXzoE4hBBvQRx1qI6etJ3VIDHO20N9hSWBd_EralvtjraX7_TSK3SuVgGmBDR36Br4QqdLWvhVPSZRwXNlYP4NAvPEHlUJCZLLgAJDFRR","method":"post","data":{"touser":"o51lJwO_1vxOjCPmou7iYgOLkvTE","msgtype":"image","image":{"media_id":"-xQsCtdms1E0Iy4pz5_xp4VYnHMB8V59bcICJrZbb5I"}},"timeout":5000,"ssl":false,"httpheader":{"contenttype":"application/json"}}
你好,想问下,你们图片上传用的是哪个接口?
我用 https://api.mch.weixin.qq.com/v3/merchant/media/upload 接口拿到的media_id 一直报 “invalid media_id rid: 61973b26-5b398da3-440af544” 错误
关注后,可在微信内接收相应的重要提醒。
请使用微信扫描二维码关注 “微信开放社区” 公众号
你好,对比下接收成功和接收报错的请求信息是否有差异?也请提供下具体的请求包,返回包等信息。
发生时间 : 20-06-29 15:01:35
请求体:
{"host":"https://api.weixin.qq.com","port":"","uri":"/cgi-bin/message/custom/send?access_token=34_Fx9hmnpTiOMJEpcdKMfXiXMt814dvYkIguHbHzr5PZWSnwZy_MXzoE4hBBvQRx1qI6etJ3VIDHO20N9hSWBd_EralvtjraX7_TSK3SuVgGmBDR36Br4QqdLWvhVPSZRwXNlYP4NAvPEHlUJCZLLgAJDFRR","method":"post","data":{"touser":"o51lJwOrfLXQM65iePS8havLD434","msgtype":"image","image":{"media_id":"-xQsCtdms1E0Iy4pz5_xp4VYnHMB8V59bcICJrZbb5I"}},"timeout":5000,"ssl":false,"httpheader":{"contenttype":"application/json"}}
响应体:
{"errcode":40007,"errmsg":"invalid media_id hint: [xPBOva00952974]"}
成功的请求(和上一条回复只有touser参数不一样)
请求时间:20-06-29 15:01:35
请求体:
{"host":"https://api.weixin.qq.com","port":"","uri":"/cgi-bin/message/custom/send?access_token=34_Fx9hmnpTiOMJEpcdKMfXiXMt814dvYkIguHbHzr5PZWSnwZy_MXzoE4hBBvQRx1qI6etJ3VIDHO20N9hSWBd_EralvtjraX7_TSK3SuVgGmBDR36Br4QqdLWvhVPSZRwXNlYP4NAvPEHlUJCZLLgAJDFRR","method":"post","data":{"touser":"o51lJwO_1vxOjCPmou7iYgOLkvTE","msgtype":"image","image":{"media_id":"-xQsCtdms1E0Iy4pz5_xp4VYnHMB8V59bcICJrZbb5I"}},"timeout":5000,"ssl":false,"httpheader":{"contenttype":"application/json"}}
你好,想问下,你们图片上传用的是哪个接口?
我用 https://api.mch.weixin.qq.com/v3/merchant/media/upload 接口拿到的media_id 一直报 “invalid media_id rid: 61973b26-5b398da3-440af544” 错误