获取access_token 41002错误
发布于 6 年前 作者 chao07 12277 次浏览 来自 问答

https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=。。。。。。&secret=。。。。


{"errcode":41002,"errmsg":"appid missing hint: [y.v26a0640e578]"}


localhost已经成功了,但是放到服务器上就出问题了



3 回复

参数是对的,因为locahost测试了是可以正确获取的,但是部署到线上服务器就出问题了

curl https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=。。。&secret=


{"errcode":41002,"errmsg":"appid missing hint: [y.v26a0640e578]"}

大神怎么解决的啊?也遇到同样的啦,谢谢!

appid和secret填对了么?

从返回结果上看是缺失了appid

回到顶部