AuthFailed at /social-auth/complete/facebook/
生活随笔
收集整理的這篇文章主要介紹了
AuthFailed at /social-auth/complete/facebook/
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
完整報錯如下:
AuthFailed at /social-auth/complete/facebook/
Authentication failed: HTTPSConnectionPool(host='graph.facebook.com', port=443): Max retries exceeded with url: /v3.2/oauth/access_token?client_id=212579623157222&redirect_uri=http%3A%2F%2Flocalhost%3A8000%2Fsocial-auth%2Fcomplete%2Ffacebook%2F&client_secret=e2196b73fc577e0b855575a37054e57b&code=AQA29JRADLLzCBJ5Ta9-HZ3NTawWFi8dqVbhQ-xopEAUrlypXQ5yc20gpdjbNkY2Ftypf5nl2F69aV-JceV1F8Wz08j7U59cWngAtvDebscvRm00Mv-A7bLbPClnnfN-sBtmTpjKkgfuerl2xcFAQXPCNtNAvYOObeL0Lwd8-u_8k6sYXaOBv7jY1SvMi3FNzfIrVnzZxWYkwjQOQQ3P2Pd2YmV5AX1hWcWhtPU_BO2ePNfyKFQH0VEuwEb62VxyuoeVsxRepWUoRl45OlEHzQxdoy577e8_MA9Va1HIdZ94fCifXYeZdDBM0uUTrJAdpCbW3YAlQvKeC8UeI9O_bT6Y (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f486c44ea58>: Failed to establish a new connection: [Errno 101] Network is unreachable',))| GET |
| http://localhost:8000/social-auth/complete/facebook/?granted_scopes=user_link%2Cemail%2Cpublic_profile&denied_scopes&code=AQA29JRADLLzCBJ5Ta9-HZ3NTawWFi8dqVbhQ-xopEAUrlypXQ5yc20gpdjbNkY2Ftypf5nl2F69aV-JceV1F8Wz08j7U59cWngAtvDebscvRm00Mv-A7bLbPClnnfN-sBtmTpjKkgfuerl2xcFAQXPCNtNAvYOObeL0Lwd8-u_8k6sYXaOBv7jY1SvMi3FNzfIrVnzZxWYkwjQOQQ3P2Pd2YmV5AX1hWcWhtPU_BO2ePNfyKFQH0VEuwEb62VxyuoeVsxRepWUoRl45OlEHzQxdoy577e8_MA9Va1HIdZ94fCifXYeZdDBM0uUTrJAdpCbW3YAlQvKeC8UeI9O_bT6Y&state=yDEpk5hsisoXyhH4oyb86veavpm8IkGe |
| 2.2.10 |
| AuthFailed |
| Authentication failed: HTTPSConnectionPool(host='graph.facebook.com', port=443): Max retries exceeded with url: /v3.2/oauth/access_token?client_id=212579623157222&redirect_uri=http%3A%2F%2Flocalhost%3A8000%2Fsocial-auth%2Fcomplete%2Ffacebook%2F&client_secret=e2196b73fc577e0b855575a37054e57b&code=AQA29JRADLLzCBJ5Ta9-HZ3NTawWFi8dqVbhQ-xopEAUrlypXQ5yc20gpdjbNkY2Ftypf5nl2F69aV-JceV1F8Wz08j7U59cWngAtvDebscvRm00Mv-A7bLbPClnnfN-sBtmTpjKkgfuerl2xcFAQXPCNtNAvYOObeL0Lwd8-u_8k6sYXaOBv7jY1SvMi3FNzfIrVnzZxWYkwjQOQQ3P2Pd2YmV5AX1hWcWhtPU_BO2ePNfyKFQH0VEuwEb62VxyuoeVsxRepWUoRl45OlEHzQxdoy577e8_MA9Va1HIdZ94fCifXYeZdDBM0uUTrJAdpCbW3YAlQvKeC8UeI9O_bT6Y (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f486c44ea58>: Failed to establish a new connection: [Errno 101] Network is unreachable',)) |
| /home/appleyuchi/anaconda3/envs/Python3.6/lib/python3.6/site-packages/social_core/backends/base.py in request, line 233 |
| /home/appleyuchi/anaconda3/envs/Python3.6/bin/python |
| 3.6.10 |
| ['/home/appleyuchi/桌面/IntroductionToTornado/第七章-外部服務(wù)認(rèn)證/django通過facebook登陸/django_social_app/social_app','/home/appleyuchi/anaconda3/envs/Python3.6/lib/python36.zip','/home/appleyuchi/anaconda3/envs/Python3.6/lib/python3.6','/home/appleyuchi/anaconda3/envs/Python3.6/lib/python3.6/lib-dynload','/home/appleyuchi/.local/lib/python3.6/site-packages','/home/appleyuchi/anaconda3/envs/Python3.6/lib/python3.6/site-packages'] |
| Tue, 7 Apr 2020 10:24:45 +0000 |
解決方案:
需要linux系統(tǒng)全局Proxy(你懂的),否則pac這種是不行的。
如果是windows的,則必須:
?
django進行facebook登陸的實驗來自:
Django Authentication With Facebook, Instagram and LinkedIn
?
?
總結(jié)
以上是生活随笔為你收集整理的AuthFailed at /social-auth/complete/facebook/的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 做T是什么意思做T的方法有哪些
- 下一篇: gevent+django并发资料调研