- 调用jscode2session,报Remote host terminated是什么原因?
小程序分别使用两个server的不同服务,其中一台server在调用jscode2session时,报Remote host terminated错误,具体报错信息如下:j.c.f.s.c.d.wechat.WechatAccountService : I/O error on GET request for "https://api.weixin.qq.com/sns/jscode2session?appid={appID}&secret={secret}&js_code={JScode}&grant_type=authorization_code":Remote host terminated the handshake; nested exception is javax.net.ssl.SSLHandshakeException: Remote host terminated the handshake 同时会发现server负载过高的问题,目前无法判断出是server负载过高导致的问题,还是该问题导致了服务器负载过高,同一时间使用的另一台server调用jscode2session返回正常,未受影响
2023-02-14 - 小程序OPENID算个人信息么?
微信小程序的OPENID算个人信息么? 第四条 个人信息是以电子或者其他方式记录的与已识别或者可识别的自然人有关的各种信息,不包括匿名化处理后的信息。 我理解的微信小程序的OPENID是匿名化处理后的信息的一种,不知道是否理解正确?
2021-10-29 - appid是对的,服务号模板消息也是对的,但是40037报错
curl -H "Content-Type:application/json" -X POST -d '{"touser":"osyIm5XR1GaNI3JknNntWo_DBIfk","mp_template_msg":{"appid":"公众号ID","template_id":"公众号模板ID","url":"home/index","miniprogram":{"appid":"小程序ID","pagepath":"\/home\/index"},"data":{"number1":{"value":537},"time2":{"value":"2021\/08\/26 06:33"},"time3":{"value":"2022\/08\/26 06:33"},"thing4":{"value":"\u60a8\u5728\u5bff\u53f8\u90ce\u7684\u79ef\u5206\u5373\u5c06\u5728365\u5929\u540e\u5230\u671f\u3002"}}}}' 'https://api.weixin.qq.com/cgi-bin/message/wxopen/template/uniform_send?access_token=48_k8PzX1RHGxkZuv9mgppUCI-cZhdyQTbqcwfFp8-wssVUIVMniJZcSj28X9p_efeZuC0MTIkC11S_uciXm5wJBRoLjEVjwx7LQOCfHuFG1V1KcvzalpedxzpnF5nnvi0Uzx3_hKbP8zULsFuMYHEjAGALUR' {"errcode":40037,"errmsg":"invalid template_id rid: 6127508c-114eb016-5d239dda"}
2021-08-26 - 统一服务消息报错40037?
curl -H "Content-Type:application/json" -X POST -d '{"touser":"小程序openid","mp_template_msg":{"appid":"公众号appid","template_id":"公众号模板id","url":"home","miniprogram":{"appid":"小程序ID","page":"\/home\/index"},"data":{"number1":{"value":537},"time2":{"value":"2021\/08\/26 06:33"},"time3":{"value":"2022\/08\/26 06:33"},"thing4":{"value":"\u60a8\u5728\u5bff\u53f8\u90ce\u7684\u79ef\u5206\u5373\u5c06\u5728365\u5929\u540e\u5230\u671f\u3002"}}}}' 'https://api.weixin.qq.com/cgi-bin/message/wxopen/template/uniform_send?access_token=48_k8PzX1RHGxkZuv9mgppUCI-cZhdyQTbqcwfFp8-wssVUIVMniJZcSj28X9p_efeZuC0MTIkC11S_uciXm5wJBRoLjEVjwx7LQOCfHuFG1V1KcvzalpedxzpnF5nnvi0Uzx3_hKbP8zULsFuMYHEjAGALUR' {"errcode":40037,"errmsg":"invalid template_id rid: 61274c56-4432d5d8-1233a540"} 请问是什么原因呢? 公众号小程序已互相绑定,并已确认appid及openid,模板id正确。
2021-08-26 - 公众号订阅通知使用绑定的小程序openid报40003错误?
想使用公众号的订阅消息向绑定的小程序发送订阅通知,调用uniformMessage.send,touser参数使用已绑定小程序的openid和公众号查询到的openid均报40003 invalid openid错误,请求参数如下:{ "touser": "osyIm5duxoB7_r-_GF7AylmJsWXA", "mp_template_msg": { "appid": "****", "template_id": "******", "url": "", "miniprogram": { "appid": "****", "path": "/index" }, "data": { "number1": { "value": 12207 }, "time2": { "value": "2021\/08\/25 10:23" }, "time3": { "value": "2022\/08\/25 10:23" }, "thing4": { "value": "test" } } } }error: {"errcode":40003,"errmsg":"invalid openid rid: 61261ae3-7f66775f-1ac5db86"} 小程序和公众号已绑定,小程序未公开。
2021-08-25