您好 解决了嘛
使用公众号的模板消息报错errcode=48001?1、接口有权限 2、access_token是公众号的 3、openid是公众号的 https request error:{}httpRequest Method!errcode=48001,errmsg = api unauthorized rid: 65d1bbf3-62f58d25-76560512
09-13secret核对过,正确,为什么报40125
微信公众号发送消息,报40125公众号发消息 获取稳定版token,post json请求 报40125 , 通过rid 查传参格式 secret 数据为******** 什么原因呢 request_body: "{"grant_type":"client_credential","appid":"正常","secret":"********"}" 代码如下 //代理服务器转发 HttpHost proxy = new HttpHost("****"); //请求url HttpPost httpPost = new HttpPost(url); httpPost.setConfig(RequestConfig.custom().setProxy(proxy).build()); httpPost.setHeader("Content-type", "application/json"); //json 数据 String json = String.format("{\"grant_type\":\"client_credential\",\"appid\":\"%s\",\"secret\":\"%s\"}", appid, appsecret); httpPost.setEntity(new StringEntity(json)); try (CloseableHttpResponse response = httpClient.execute(httpPost)) { String body = EntityUtils.toString(response.getEntity(), "UTF-8"); return extractAccessTokenByBody(body); } 请问 什么原因呢?
04-19用https://api.weixin.qq.com/cgi-bin/token? 获取token 存到redis 2小时有效期,第一次正常获取token,间隔一小时 再次获取token报错
access_token无效或不是最新的,可以通过getStableAccessToken?您好 同样报错 昨天发消息正常 代码无改动 invalid credentials access_token is invalid or not lasted could get access_token by getStableAccessToken ,more details at https://mmbizurl.can/s/JtxxFh33r rid:6620860d-5a05be0d-27537793 什么原因呢
04-19