问题描述
- 微博API获取不到access token
-
https://api.weibo.com/oauth2/authorize?client_id=2031170566&redirect_uri=http://apps.weibo.com/yingxiaoshujv&response_type=code
Hit enter when it's done.[Enter]:ff4cb7adaced25bcbbf43b788f2978b0
1 INFO [2015-02-03 13:05:54] code: ff4cb7adaced25bcbbf43b788f2978b0
403 DEBUG [2015-02-03 13:05:55] Request:
403 DEBUG [2015-02-03 13:05:55] POSThttps://api.weibo.com/oauth2/access_token
1579 DEBUG [2015-02-03 13:05:56] Response:
1580 DEBUG [2015-02-03 13:05:56] https StatusCode:401
1580 DEBUG [2015-02-03 13:05:56] Server:nginx/1.6.1
1581 DEBUG [2015-02-03 13:05:56] Date:Tue, 03 Feb 2015 05:05:54 GMT
1581 DEBUG [2015-02-03 13:05:56] Transfer-Encoding:chunked
1582 DEBUG [2015-02-03 13:05:56] Connection:keep-alive
1582 DEBUG [2015-02-03 13:05:56] Pragma:No-cache
1582 DEBUG [2015-02-03 13:05:56] Cache-Control:no-cache
1583 DEBUG [2015-02-03 13:05:56] Expires:Thu, 01 Jan 1970 00:00:00 GMT
1583 DEBUG [2015-02-03 13:05:56] Api-Server-IP:10.73.89.46
1709 WARN [2015-02-03 13:05:56] Going to buffer response body of large or unknown size. Using getResponseBodyAsStream instead is recommended.
1709 DEBUG [2015-02-03 13:05:56] {"error":"invalid_client","error_code":21324,"request":"/oauth2/access_token","error_uri":"/oauth2/access_token","error_description":"client_secret error."}1820 INFO [2015-02-03 13:05:56] Unable to get the access token.
报错信息说我client_secret 输错了,但实际上我输的根本没错,请问这怎么解决。这个跟我应用还没审核通过有关系么?
解决方案
应用没审核通过可以添加测试账号,如果不是测试账号就不行。
时间: 2024-11-02 02:02:23