收藏
回答

auth.code2Session 为什么返回 40164?

auth.code2Session

https://api.weixin.qq.com/sns/jscode2session?appid=xxxxxxxxxxxxxxxxxxx&secret=xxxxxxxxxxxxxxxxxx&js_code=xxxxxxxxxxxxxxxxx&grant_type=authorization_code

这个请求 返回的

"errcode":40164,"errmsg":"invalid ip 47.xx.xx.xx ipv6 ::ffff:47.xx.xx.xx, not in whitelist, rid: 61a5dd5a-34420827-1c178dac"


但是文档没有 40164这个错误码 这是要配置白名单吗? 在哪配置?

另一个 小程序 就可以使用 请问这是为什么

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

1 个回答

  • Mr.Zhao
    Mr.Zhao
    2021-11-30

    公众平台里配置,默认是关闭的,有人给打开了吧

    2021-11-30
    有用
    回复 4
    • 孙中剑
      孙中剑
      2021-11-30
      麻烦问下 是小程序还是公众号的
      2021-11-30
      回复
    • Mr.Zhao
      Mr.Zhao
      发表于移动端
      2021-11-30回复孙中剑
      小程序啊
      2021-11-30
      回复
    • 孙中剑
      孙中剑
      2021-11-30回复Mr.Zhao
      感谢 问题已解决
      2021-11-30
      回复
    • 杨光辉
      杨光辉
      04-12回复孙中剑
      你好,怎么解决的,多谢
      04-12
      回复
登录 后发表内容