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

Patreon Error #5

Closed
Felli opened this issue Feb 2, 2018 · 4 comments
Closed

Patreon Error #5

Felli opened this issue Feb 2, 2018 · 4 comments

Comments

@Felli
Copy link
Contributor

Felli commented Feb 2, 2018

What steps will reproduce the problem?

Register your client then setup everything on Patreon's end and after on your end and try to connect to Patreon.

What is the expected result?

A connection to Patreon

What do you get instead?

yii\authclient\InvalidResponseException: Request failed with code: 401, message: {"error": "access_denied"} in /home/USER/public_html/SITE/protected/vendor/yiisoft/yii2-authclient/BaseOAuth.php:210 Stack trace:
#0 /home/USER/public_html/SITE/protected/vendor/yiisoft/yii2-authclient/OAuth2.php(89): yii\authclient\BaseOAuth->sendRequest('POST', 'https://api.pat...', Array)
#1 /home/USER/public_html/SITE/protected/vendor/yiisoft/yii2-authclient/AuthAction.php(359): yii\authclient\OAuth2->fetchAccessToken('rHDkaM1OrLFCC6P...')
#2 /home/USER/public_html/SITE/protected/vendor/yiisoft/yii2-authclient/AuthAction.php(193): yii\authclient\AuthAction->authOAuth2(Object(humhub\modules\user\authclient\Patreon))
#3 /home/USER/public_html/SITE/protected/humhub/modules/user/authclient/AuthAction.php(35): yii\authclient\AuthAction->auth(Object(humhub\modules\user\authclient\Patreon)) #4 /home/USER/public_html/SITE/protected/vendor/yiisoft/yii2-authclient/AuthAction.php(177): humhub\modules\user\authclient\AuthAction->auth(Object(humhub\modules\user\authclient\Patreon))
#5 [internal function]: yii\authclient\AuthAction->run()
#6 /home/USER/public_html/SITE/protected/vendor/yiisoft/yii2/base/Action.php(94): call_user_func_array(Array, Array)
#7 /home/USER/public_html/SITE/protected/vendor/yiisoft/yii2/base/Controller.php(156): yii\base\Action->runWithParams(Array)
#8 /home/USER/public_html/SITE/protected/vendor/yiisoft/yii2/base/Module.php(523): yii\base\Controller->runAction('external', Array)
#9 /home/USER/public_html/SITE/protected/vendor/yiisoft/yii2/web/Application.php(102): yii\base\Module->runAction('user/auth/exter...', Array)
#10 /home/USER/public_html/SITE/protected/vendor/yiisoft/yii2/base/Application.php(380): yii\web\Application->handleRequest(Object(humhub\components\Request))
#11 /home/USER/public_html/SITE/index.php(25): yii\base\Application->run()
#12 {main}

Additional info

Q A
HumHub version 1.2.4
Oauth version 1.0.0
PHP version 7.1.13
Operating system CloudLinux (CentOS 6)

Note: Please use the community site for any questions on customizing HumHub.

Note: Also provide the full error stacks from Administration --> Information --> Logging and errors from your browser console if possible.

@Felli
Copy link
Contributor Author

Felli commented Feb 2, 2018

Error 2

  • Fixed
yii\authclient\InvalidResponseException: Request failed with code: 301, message: <html> <head><title>301 Moved Permanently</title></head> <body bgcolor="white"> <center><h1>301 Moved Permanently</h1></center> <hr><center>nginx/1.10.1</center> </body> </html> in /home/USER/public_html/SITE/protected/vendor/yiisoft/yii2-authclient/BaseOAuth.php:210 Stack trace:
#0 /home/USER/public_html/SITE/protected/vendor/yiisoft/yii2-authclient/OAuth2.php(89): yii\authclient\BaseOAuth->sendRequest('POST', 'https://patreon...', Array)
#1 /home/USER/public_html/SITE/protected/vendor/yiisoft/yii2-authclient/AuthAction.php(359): yii\authclient\OAuth2->fetchAccessToken('X5BV37oO6KecCLu...')
#2 /home/USER/public_html/SITE/protected/vendor/yiisoft/yii2-authclient/AuthAction.php(193): yii\authclient\AuthAction->authOAuth2(Object(humhub\modules\user\authclient\Patreon))
#3 /home/USER/public_html/SITE/protected/humhub/modules/user/authclient/AuthAction.php(35): yii\authclient\AuthAction->auth(Object(humhub\modules\user\authclient\Patreon))
#4 /home/USER/public_html/SITE/protected/vendor/yiisoft/yii2-authclient/AuthAction.php(177): humhub\modules\user\authclient\AuthAction->auth(Object(humhub\modules\user\authclient\Patreon))
#5 [internal function]: yii\authclient\AuthAction->run()
#6 /home/USER/public_html/SITE/protected/vendor/yiisoft/yii2/base/Action.php(94): call_user_func_array(Array, Array)
#7 /home/USER/public_html/SITE/protected/vendor/yiisoft/yii2/base/Controller.php(156): yii\base\Action->runWithParams(Array)
#8 /home/USER/public_html/SITE/protected/vendor/yiisoft/yii2/base/Module.php(523): yii\base\Controller->runAction('external', Array)
#9 /home/USER/public_html/SITE/protected/vendor/yiisoft/yii2/web/Application.php(102): yii\base\Module->runAction('user/auth/exter...', Array)
#10 /home/USER/public_html/SITE/protected/vendor/yiisoft/yii2/base/Application.php(380): yii\web\Application->handleRequest(Object(humhub\components\Request))
#11 /home/USER/public_html/SITE/index.php(25): yii\base\Application->run()
#12 {main}

@Felli
Copy link
Contributor Author

Felli commented Feb 3, 2018

Back to the original error in the first post.

This was referenced Feb 7, 2018
@Felli
Copy link
Contributor Author

Felli commented Feb 28, 2019

On-hold till Patron's API isn't changing as much.

/closed till further notice.

@Felli Felli closed this as completed Feb 28, 2019
@ArchBlood ArchBlood reopened this Nov 1, 2019
@ArchBlood ArchBlood added the Status: Depreciate Up for discussing on depreciating oauth clients label Nov 1, 2019
@ArchBlood ArchBlood self-assigned this Nov 1, 2019
@GreenMeteor GreenMeteor locked as off-topic and limited conversation to collaborators Nov 1, 2019
@ArchBlood ArchBlood added Status: Depreciated and removed Status: Depreciate Up for discussing on depreciating oauth clients Status: On-Hold labels Nov 21, 2019
@ArchBlood ArchBlood reopened this Dec 11, 2019
@GreenMeteor GreenMeteor unlocked this conversation Dec 11, 2019
@github-actions
Copy link

github-actions bot commented Feb 9, 2020

This issue has not seen any action (e.g comments/replies) for more than 7 days and is now being marked as invalid

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

No branches or pull requests

2 participants