Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

weibo.APIError: APIError: 21324: #55

Open
hillerliao opened this issue Jun 17, 2016 · 1 comment
Open

weibo.APIError: APIError: 21324: #55

hillerliao opened this issue Jun 17, 2016 · 1 comment

Comments

@hillerliao
Copy link

Traceback (most recent call last):
File "weibo_bot.py", line 156, in
check_user(1372451215)
File "weibo_bot.py", line 104, in check_user
token = client.request_access_token(code)
File "/usr/local/lib/python2.7/dist-packages/weibo.py", line 263, in request_access_token
code = code, grant_type = 'authorization_code')
File "/usr/local/lib/python2.7/dist-packages/weibo.py", line 119, in _http_post
return _http_call(url, _HTTP_POST, authorization, **kw)
File "/usr/local/lib/python2.7/dist-packages/weibo.py", line 172, in _http_call
raise APIError(r.error_code, r.get('error', ''), r.get('request', ''))
weibo.APIError: APIError: 21324: invalid_client, request: /oauth2/access_token

@yuening8080
Copy link

Same error. My generated url, for whatever reason, ended up as:
https://api.weibo.com/oauth2/authorize?redirect_uri=https%3A//api.weibo.com/oauth2/default.html&response_type=code&client_id=3331125062

Change %3A to semidcolon resolved the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants