gpt4 book ai didi

ios - QuickBlox 检索对话框列表返回错误 422

转载 作者:行者123 更新时间:2023-11-28 21:37:21 25 4
gpt4 key购买 nike

我试图在用户登录后获取对话框列表。这是我的代码

QBResponsePage *page = [QBResponsePage responsePageWithLimit:20];


[QBRequest dialogsForPage:page extendedRequest:nil successBlock:^(QBResponse *response, NSArray *dialogObjects, NSSet *dialogsUsersIDs, QBResponsePage *page) {

NSLog(@"response = %@\n\n",response);
NSLog(@"-------\ndialogObjects = %@",dialogObjects);

} errorBlock:^(QBResponse *response) {

NSLog(@"error is %@",response);

}];

它给我错误 422。控制台日志是

[QBCore] Response headers: {
"Access-Control-Allow-Origin" = "*";
"Cache-Control" = "no-cache";
Connection = "keep-alive";
"Content-Length" = 45;
"Content-Type" = "application/json; charset=utf-8";
Date = "Wed, 28 Oct 2015 14:07:30 GMT";
"QB-Token-ExpirationDate" = "2015-10-28 16:07:30 UTC";
"QuickBlox-REST-API-Version" = "0.1.1";
Server = "nginx/1.6.2";
Status = "422 Unprocessable Entity";
"X-Rack-Cache" = miss;
"X-Request-Id" = 560260a8bf98da9b7c3d8ba133c8d7a7;
"X-Runtime" = "0.007757";
"X-UA-Compatible" = "IE=Edge,chrome=1";

为什么会给我错误,我正在使用他们在文档中提供的代码

最佳答案

检查错误原因错误 block 。它用简单的语言给你错误。

errorBlock:^(QBResponse *response) {
NSLog(@"ERROR GROUP %@",response.error.reasons);
}];

关于ios - QuickBlox 检索对话框列表返回错误 422,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33393506/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com