收藏
回答

上传临时素材,png格式图片,返回错误代码:40123?

临时素材接口支持png格式图片,这边上传的图片格式也是png格式,接口却返回错误代码:40123, 错误信息:invalid image format。没明白具体原因。求大佬解答


hint值(1644221143277973028278188)查询信息如下:

请求参数:

--q7I8p27Ojj9al2eXFP5Mi7wzSJItqL-BcOPFm71

Content-Disposition: form-data; name="media"; filename="123_24700f5f-2ec1-47fc-939f-70c3492f71451443390571017882261png"

Content-Type: application/octet-stream

Content-Transfer-Encoding: binary

RIFF R

请求头:

POST /cgi-bin/media/upload?debug=1&type=image&access_token=Wsg9j5VqDR7xfZfuhXaLjhJ4HoQMK737svTBuprJ6XvmgkiO2IgfIPMUBKjzyjB9FY9xcmTfhnkvyjgORo8uBkPGnAzQQn_fAgSpkX34sv1tVtPeFHfsNFI5wLH_GkckwSMtw2VsLpc71uLFgsNuMW1T28i0rblSALQvBELun5c2FerTz5cXYCmyIWnZguwauOKDhVhcN9R2DwUtadflEg HTTP/1.1

X-Forwarded-For: 106.75.23.50

PROXY_FORWARDED_FOR: 32174B6A,0000,0,0,0,0,0,0,0

WEWORK_PROXY_FORWARDED_FOR: 106.75.23.50

Connection: Keep-Alive

Pragma: no-cache

X-InnerReqId: 196187500.1449.1644221143.53243

Wxwork-Api-Transfer: ChkxNjQ0MjIxMTQzMjc3OTczMDI4Mjc4MTg4

Host: qyapi.weixin.qq.com

User-Agent: Apache-HttpClient/4.5 (Java/1.8.0_301)

Content-Type: multipart/form-data; boundary=q7I8p27Ojj9al2eXFP5Mi7wzSJItqL-BcOPFm71

Content-Length: 21298


回答关注问题邀请回答
收藏

2 个回答

  • 赵龙
    赵龙
    发表于移动端
    2022-02-07
    吃vv吃不完
    2022-02-07
    有用
    回复
  • Mr.Zhao
    Mr.Zhao
    2022-02-07

    你的filename png前面为啥没点

    2022-02-07
    有用
    回复
登录 后发表内容