Problem/Motivation

I am seeing this notice in my site logs.

League\OAuth2\Client\Provider\Exception\IdentityProviderException: OAuthException: An unexpected error has occurred. Please retry your request later. in League\OAuth2\Client\Provider\Facebook->checkResponse() (line 156 of /vendor/league/oauth2-facebook/src/Provider/Facebook.php).

Steps to reproduce

I am unable to reproduce this error. But this error is occurring when the user accesses the site using Instagram/Snapchats browser.

Proposed resolution

NA

Remaining tasks

NA

User interface changes

NA

API changes

NA

Data model changes

NA

Comments

mehul.shah created an issue. See original summary.

mehul.shah’s picture

StatusFileSize
new1.57 KB

I've created a patch to handle this exception. Attaching it here.

mehul.shah’s picture

StatusFileSize
new1.59 KB

This one is an updated patch, to avoid further processing when an exception is handled.

mehul.shah’s picture

mehul.shah’s picture

Updated the previous patch with better handling.

mehul.shah’s picture

wells’s picture

Version: 8.x-2.x-dev » 3.x-dev
Status: Active » Needs review
Related issues: +#3183617: 500 error on facebook auth user/login
wells’s picture

  • wells committed 3679b89 on 3.x authored by mehul.shah
    Issue #3178401 by mehul.shah, wells: An unexpected error has occurred....
wells’s picture

Status: Needs review » Fixed

Thanks @mehul.shah! This is merged in the 3.x branch.

Status: Fixed » Closed (fixed)

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