Getting a 500 error on prod site -
TypeError: Argument 1 passed to League\OAuth2\Client\Provider\AbstractProvider::getResourceOwner() must be an instance of League\OAuth2\Client\Token\AccessToken, null given, called in /modules/contrib/social_auth_google/src/GoogleAuthManager.php on line 46 in League\OAuth2\Client\Provider\AbstractProvider->getResourceOwner() (line 765 of /vendor/league/oauth2-client/src/Provider/AbstractProvider.php)
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | 3133754-7.patch | 682 bytes | mohit.bansal623 |
| #3 | 500-error-on-google-auth-3133754-3.patch | 682 bytes | sanket1007 |
Comments
Comment #2
sanket1007 commentedComment #3
sanket1007 commentedComment #4
gvsoCan you give more detail on how to reproduce this issue? The access token should have been stored once
authenticatewas called. And if that fails, the exception should happen there, not somewhere else in the programComment #5
gilmordGot simillar error (diferent lines, probably due to module versions?),
@gvco for me it can be only reproduced on chrome android web browser, works fine on ios and desctop and android firefox.
Argument 1 passed to League\\OAuth2\\Client\\Provider\\AbstractProvider::getResourceOwner() must be an instance of League\\OAuth2\\Client\\Token\\AccessToken, null given, called in /home/drupal/web/modules/contrib/social_auth_google/src/GoogleAuthManager.php on line 49 in /home/drupal/vendor/league/oauth2-client/src/Provider/AbstractProvider.php on line 765
Comment #6
wellsComment #7
mohit.bansal623 commentedComment #9
wellsPatch applied to 3.x-dev. Thanks, all!