我已经在我的应用中集成了QuickBlox iOS SDK用于聊天。但登录没有发生日志中的错误
[QBCore]响应错误:错误域= NSURLErrorDomain代码= -999 "取消" 的UserInfo = {NSErrorFailingURLKey = https://api.dev.quickblox.com/session.json, NSErrorFailingURLStringKey = https://api.dev.quickblox.com/session.json, NSLocalizedDescription =已取消} 2016-08-17 16:10:33.207 MediEN [270:54815] [QBCore]回复错误原因:{ error = { 消息=已取消; }; 2016-08-17 16:10:33.208 MediEN [270:54815] [QBAuth]创建会话请求错误:(null)2016-08-17 16:10:33.221 MediEN [270:54898] [QBCore]响应错误:错误 Domain = NSURLErrorDomain Code = -999"已取消" 的UserInfo = {NSErrorFailingURLKey = https://api.dev.quickblox.com/session.json, NSErrorFailingURLStringKey = https://api.dev.quickblox.com/session.json, NSLocalizedDescription =已取消} 2016-08-17 16:10:33.222 MediEN [270:54898] [QBCore]回复错误原因:{ error = { 消息=已取消; }; }
请在下面找到初始化和注册的代码。
[QBSettings setApplicationID:44907];
[QBSettings setAuthKey:@"qha5pegavkq-n-K"];
[QBSettings setAuthSecret:@"BTFsj7Rtt27DAmT"];
[QBSettings setAccountKey:@"Ep97pSstBQ9WQfw"];
[QBSettings setChatDNSLookupCacheEnabled:YES];
[QBSettings setServiceZone:3];
QBUUser *user = [QBUUser user];
user.login = @"kuriakose2";
user.password = @"kuriakose37";
[QBRequest signUp:user successBlock:^(QBResponse * _Nonnull response, QBUUser * _Nullable user)
{
[self showAlertWithMessage:response.debugDescription title:response.description];
} errorBlock:^(QBResponse * _Nonnull response)
{
[self showAlertWithMessage:response.debugDescription title:response.description];
}];
答案 0 :(得分:0)
得到答案,我的 AuthSecret 错了。