QuickBlox / quickblox-ios-sdk

QuickBlox iOS SDK for messaging and video calling
https://quickblox.com/developers/IOS
MIT License
397 stars 358 forks source link

QuickBlox is not working, and returning error message "cancelled" #848

Closed ghulammustafa closed 7 years ago

ghulammustafa commented 7 years ago

Quickblox Framework Version 2.7.3 (for iOS)

Call to +logInWithUserLogin:password:successBlock:errorBlock: fails with error. See below for reference. All environment variables are properly set. The same code was working before, but it's not working anymore.

Note that the same is not working using the web API as well.

The log is below for reference. Has anything changed in the API?

2017-08-04 18:10:14.947 MYAPP[14178:4618971] [QBCore] Request URL:https://api.quickblox.com/account_settings.json
2017-08-04 18:10:14.947 MYAPP[14178:4618971] [QBCore] Request method: GET
2017-08-04 18:10:14.947 MYAPP[14178:4618971] [QBCore] Request parameters:(null)
2017-08-04 18:10:14.948 MYAPP[14178:4618971] [QBCore] Request headers: {
    "Accept-Language" = "en;q=1";
    "QB-Account-Key" = z2Embsbo1psy3nPhQLBB;
    "QB-OS" = "iOS 10.3";
    "QB-SDK" = "iOS 2.7.3";
    "QuickBlox-REST-API-Version" = "0.1.1";
    "User-Agent" = "MYAPP/1.2.4 (iPhone; iOS 10.3; Scale/2.00)";
}

2017-08-04 18:10:38.972 MYAPP[14178:4622287] [QBCore] Response error: Error Domain=NSURLErrorDomain Code=-999 "cancelled" UserInfo={NSErrorFailingURLKey=https://api.quickblox.com/session.json, NSLocalizedDescription=cancelled, NSErrorFailingURLStringKey=https://api.quickblox.com/session.json}
2017-08-04 18:10:38.972 MYAPP[14178:4622287] [QBCore] Response error reasons: {
    error =     {
        message = cancelled;
    };
}
2017-08-04 18:10:38.972 MYAPP[14178:4622287] [QBAuth] Create Session request error: (null)
Raikerian commented 7 years ago

Hi,

Did you call cancel method for that QBRequest by any chance? That's the only possible way for that error to appear.

ghulammustafa commented 7 years ago

No ,we didn't. And, the same code was working before. But now it's not working on both web and iOS.

Raikerian commented 7 years ago

What was changed prior to the bug? Did you update framework by any chance?

ghulammustafa commented 7 years ago

No changes made to the framework. Don't remember changing any code as well.

Raikerian commented 7 years ago

Please check our latest framework 2.10.

ghost commented 7 years ago

Hi @ghulammustafa, any updates ???

SameerShelarr commented 2 years ago

I was also getting this issue. Turns out I had Charles proxy running because of which the login was failing with

[QBCore] Response error: Error Domain=NSURLErrorDomain Code=-999 "cancelled" UserInfo={NSErrorFailingURLKey=https://api.quickblox.com/session.json, NSLocalizedDescription=cancelled, NSErrorFailingURLStringKey=https://api.quickblox.com/session.json}

[QBCore] Response error reasons: { error = { message = cancelled; };