QuickBlox 集成失败登录/注册未发生
Posted
技术标签:
【中文标题】QuickBlox 集成失败登录/注册未发生【英文标题】:Failure in QuickBlox integration Login/Signup not happening 【发布时间】:2016-08-17 10:45:28 【问题描述】:我已在我的应用程序中集成了用于聊天的 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] 响应错误原因: 错误 = 消息=取消; ; 2016-08-17 16:10:33.208 MediEN[270:54815] [QBAuth] 创建会话请求错误:(空)2016-08-17 16:10:33.221 MediEN[270:54898] [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.222 MediEN[270:54898] [QBCore] 响应错误原因: 错误 = 消息=取消; ;
请在下面找到初始化和注册代码。
[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];
];
【问题讨论】:
【参考方案1】:得到答案,我的 AuthSecret 错了。
【讨论】:
以上是关于QuickBlox 集成失败登录/注册未发生的主要内容,如果未能解决你的问题,请参考以下文章
iOS Quickblox 错误:请求失败:未经授权 (401)