收藏
回答

创建标签提示errcode":40001,"errmsg":"invalid credentia?

用户管理 /用户标签管理/创建标签,提示以下错误代码,请问是哪里配置有问题?

{"errcode":40001,"errmsg":"invalid credential, access_token is invalid or not latest rid: 6229b85a-1f17697d-5d55b322"}

1.取样器结果:

Thread Name:创建标签接口 1-1

Sample Start:2022-03-10 16:35:38 CST

Load time:149

Connect Time:108

Latency:149

Size in bytes:296

Sent bytes:432

Headers size in bytes:178

Body size in bytes:118

Sample Count:1

Error Count:0

Data type ("text"|"bin"|""):text

Response code:200

Response message:OK

HTTPSampleResult fields:

ContentType: application/json; encoding=utf-8

DataEncoding: null

2.请求request body:

"POST https://api.weixin.qq.com/cgi-bin/tags/create?access_token=$(ACCESS_TOKEN)

POST data:

{"tag":{"name":"陕西5"}}

[no cookies]

request header:

Connection: keep-alive

Content-Type: application/json;charset=UTF-8

ACCESS_TOKEN: 54_gIWIwUgeQsj580YD99wTJ2GWU9jsGrw-nqrg7i1nZct24q2PLGSo9Wl0exWIO0u_2TmUJNFuyJ-Rq1FImFm6GvsHSIsJ9xYpaRYvmAJpZrlLK4ky19B34M-wPHAy5dM-U-scbC3ATdqkcE2LOLBcABAWTJ

Content-Length: 22

Host: api.weixin.qq.com

User-Agent: Apache-HttpClient/4.5.12 (Java/1.8.0_152)

3.响应response body:

{"errcode":40001,"errmsg":"invalid credential, access_token is invalid or not latest rid: 6229b85a-1f17697d-5d55b322"}

response header:

HTTP/1.1 200 OK

Connection: keep-alive

Date: Thu, 10 Mar 2022 08:35:38 GMT

Content-Type: application/json; encoding=utf-8

RetKey: 11

LogicRet: 40001

Content-Length: 118

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

2 个回答

  • Kathy
    Kathy
    2022-03-10

    感谢答复。我是在创建标签接口的时候报错的,是个人进行开发的,AppID(小程序ID):wx9a080014c1abaf0e。请问创建用户标签时是否需要先建立本地服务器或者数据库呢?

    2022-03-10
    有用
    回复
  • 公众号技术运营专员-livia
    公众号技术运营专员-livia
    2022-03-10

    你好,建议你检查

    2022-03-10
    有用
    回复 1
    • Kathy
      Kathy
      2022-03-10
      只开通了微信云开发,未配置服务器及域名配置等
      2022-03-10
      回复
登录 后发表内容
问题标签