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)

Comments

sanket1007 created an issue. See original summary.

sanket1007’s picture

Issue summary: View changes
sanket1007’s picture

StatusFileSize
new682 bytes
gvso’s picture

Priority: Critical » Normal

Can you give more detail on how to reproduce this issue? The access token should have been stored once authenticate was called. And if that fails, the exception should happen there, not somewhere else in the program

gilmord’s picture

Got 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

wells’s picture

Version: 8.x-2.0-beta4 » 3.x-dev
mohit.bansal623’s picture

Status: Active » Needs review
StatusFileSize
new682 bytes

  • wells committed 5fba18b on 3.x authored by sanket1007
    Issue #3133754 by sanket1007, mohit.bansal623: 500 error on google auth
    
wells’s picture

Status: Needs review » Fixed

Patch applied to 3.x-dev. Thanks, all!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.