微信坑-网页授权登录errcode=48001,errmsg=api unauthorized
来源:互联网 发布:太傻中介知乎 编辑:程序博客网 时间:2024/03/29 19:19
错误原因1:
第一步:用户同意授权,获取code
在确保微信公众账号拥有授权作用域(scope参数)的权限的前提下(服务号获得高级接口后,默认拥有scope参数中的snsapi_base和snsapi_userinfo),引导关注者打开如下页面:
可能原因:appid和第二步中的appid 不匹配
错误原因2:
第一步:用户同意授权,获取code
在确保微信公众账号拥有授权作用域(scope参数)的权限的前提下(服务号获得高级接口后,默认拥有scope参数中的snsapi_base和snsapi_userinfo),引导关注者打开如下页面:
https://open.weixin.qq.com/connect/oauth2/authorize?appid=APPID&redirect_uri=REDIRECT_URI&response_type=code&scope=SCOPE&state=STATE#wechat_redirect若提示“该链接无法访问”,请检查参数是否填写错误,是否拥有scope参数对应的授权作用域权限。
可能原因:appid和第二步中的appid 不匹配
错误原因2:
可能原因:第一步URL中的scope参数是否为snsapi_base,请改成snsapi_userinfo
注意URL不要有空格,否则会报错Illegal character in query at index 185
阅读全文
0 0
- 微信坑-网页授权登录errcode=48001,errmsg=api unauthorized, hints: [ req_id: Q0188s105 ]
- 微信坑-网页授权登录errcode=48001,errmsg=api unauthorized
- 微信登录提示48001,{"errcode":48001,"errmsg":"api unauthorized, hints: [ req_id: 1QoCla0699ns81 ]"}
- 微信 {"errcode":48001,"errmsg":"api unauthorized, hints: [ req_id: 1QoCla0699ns81 ]"}
- 微信 {"errcode":48001,"errmsg":"api unauthorized, hints: [ req_id: 1QoCla0699ns81 ]"}
- 调用 微信接口报错 {"errcode":48001,"errmsg":"api unauthorized, hints: [ req_id: 1QoCla0699ns81 ]"}
- "errcode":50001,"errmsg":"redirect_uri unauthorized"
- 关于微信开发模式创建菜单失败 errcode:48001 errmsg:api unauthorized hint: [9U7bga0176vr44!]的解释
- 微信网页授权获取用户信息 返回{"errcode":40066,"errmsg":"invalid url hint: [FZbxRA0556sz12!]"}错误
- 微信公众号 errcode=41011, errmsg=missing agentid
- 微信错误:errcode=45015, errmsg=response out of time limit or subscription is canceled
- 微信错误:errcode=45015, errmsg=response out of time limit or subscription is canceled
- {"errcode":41011,"errmsg":"missing agentid"}
- 微信支付{"errcode":1001,"errmsg":""}问题
- 微信 "{"errcode":-1,"errmsg":"system error"}"
- 微信网页授权登录
- 微信网页授权登录
- |- 微信 -| 网页授权登录
- oracle里存储函数将金额数字转换成大写
- MySQL 数据库,一天一万条以上的增量,怎么优化(未完)
- java实训第五节java基础数据类型
- struts2登录拦截(拦截Action,拦截url)
- redis的安装
- 微信坑-网页授权登录errcode=48001,errmsg=api unauthorized
- 购物车
- java.lang.NoSuchFieldError: Toolbar_buttonGravity
- 传感器校准
- <1> C/C++的一些基本介绍
- MyBatis优缺点
- windows下查询端口命令
- 使用Chrome Frame,彻底解决浏览器兼容问题
- unity 下载文件 及进度提示 pc android ios