Search code examples
wechat

wechat access token: error 40066


Accordingly to docs, all I have to do after creating dev account, is following:

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

But, I get this:

{
  "errcode": 40066,
  "errmsg": "invalid url hint: [qQ0550418k466!]"
}

Tried both "api.weixin.qq.com" and "api.wechat.com" domains, no difference. This error code is not even described in docs. Does anybody know what to do with this?


Solution

  • Ok, it appears that there should not be slash before "?". That's all.