*响应*
c4df0aed-3ac4-44e2-9130-1e3ce4c7fe8b *** 状态:401 标题 X运行时= 0.005408 缓存控制=无缓存 QuickBlox-REST-API-版本= 0.1.1 Set-Cookie = _mkra_ctxt = 256b83ceafdb1a34572cc585e5e65c47--401;路径= /;最大年龄= 5; HttpOnly;安全 WWW-Authenticate = OAuth领域=用户 状态= 401未经授权 X-Request-Id = e8cc58fd-c8c6-4df7-8afb-82dce77ba744 X-Android-Response-Source =网络401 连接=关闭 X-Android-Sent-Millis = 1550228074566 Content-Type =应用程序/ json;字符集= utf-8 日期=星期五,2019年2月15日10:54:31 GMT X-Content-Type-Options = nosniff 服务器= nginx / 1.8.1 内容长度= 55 严格运输安全性=最大年龄= 31536000 X-XSS-Protection = 1;模式=阻止 X-Frame-Options = SAMEORIGIN X-Android-Received-Millis = 1550228075085 访问控制允许来源= * 身体 '{“错误”:{“基本”:[“所需的会话不存在”]}}'
private void startSignUpNewUser(final QBUser newUser) {
showProgressDialog(R.string.dlg_creating_new_user);
requestExecutor.signUpNewUser(newUser, new QBEntityCallback<QBUser>() {
@Override
public void onSuccess(QBUser result, Bundle params) {
loginToChat(result);
}
@Override
public void onError(QBResponseException e) {
if (e.getHttpStatusCode() == Consts.ERR_LOGIN_ALREADY_TAKEN_HTTP_STATUS) {
signInCreatedUser(newUser, true);
} else {
hideProgressDialog();
Log.e("Errorr..Login..chat_", e.getMessage() + "...");
Toaster.longToast(R.string.sign_up_error);
}
}
}
);
}