facebook / facebook-ios-sdk

Used to integrate the Facebook Platform with your iOS & tvOS apps.
https://developers.facebook.com/docs/ios
Other
7.79k stars 3.55k forks source link

The server is temporarily busy, please try again (500 error from Facebook) #2159

Open vixez opened 1 year ago

vixez commented 1 year ago

Checklist before submitting a bug report

Xcode version

14.0.1

Facebook iOS SDK version

15.1.0

Dependency Manager

CocoaPods

SDK Framework

Login

Goals

Log a user in using the Facebook SDK

Expected results

After the users logs in, my app is opened and can succesfully continue.

Actual results

The SDK returns the following error

▿ Optional<Error>
  - some : Error Domain=com.facebook.sdk.core Code=8 "(null)" UserInfo={NSRecoveryAttempter=<FBSDKTemporaryErrorRecoveryAttempter: 0x28219d100>, com.facebook.sdk:FBSDKGraphRequestErrorKey=1, com.facebook.sdk:FBSDKErrorDeveloperMessageKey=An unknown error has occurred., com.facebook.sdk:FBSDKGraphRequestErrorParsedJSONResponseKey={
    body =     {
        error =         {
            code = 1;
            "fbtrace_id" = AK1LoNJP0ca0quThgMVlELr;
            message = "An unknown error has occurred.";
            type = OAuthException;
        };
    };
    code = 500;
}, NSLocalizedRecoveryOptions=(
    OK
), com.facebook.sdk:FBSDKGraphRequestErrorHTTPStatusCodeKey=500, NSLocalizedRecoverySuggestion=The server is temporarily busy, please try again., com.facebook.sdk:FBSDKGraphRequestErrorGraphErrorCodeKey=1}

Steps to reproduce

Try logging in using this version of the SDK on iOS with a test user.

Code samples & details

No response

pmanuelli commented 1 year ago

We have the same issue in our app. It was working as expected but then it started failing with this error

nicosocoro commented 1 year ago

We are having the same issue.

ifiszer commented 1 year ago

I'm glad I'm not the only one having this issue, is there any resolution?

bydopa commented 1 year ago

Stucked with the same here.

gastoncantera commented 1 year ago

Same issue here

janeheffernan commented 1 year ago

Hello, does this issue persist? If so, would you please file a bug report for tracking purposes? Thanks!

pmanuelli commented 1 year ago

Hello @janeheffernan.

In our case, the problem is solved. The login started working again after Facebook reviewed our application and approved it.

We were getting this error in developer mode. When the application was in production mode the login worked fine. But in developer mode, it didn't work when we tried to login with developers and testing accounts.

I think that this issue is related to this one https://github.com/facebook/facebook-ios-sdk/issues/2148