commit
0680945839
@ -111,7 +111,7 @@ void JavaChecker::finished(int exitcode, QProcess::ExitStatus status)
|
|||||||
auto parts = line.split('=', QString::SkipEmptyParts);
|
auto parts = line.split('=', QString::SkipEmptyParts);
|
||||||
if(parts.size() != 2 || parts[0].isEmpty() || parts[1].isEmpty())
|
if(parts.size() != 2 || parts[0].isEmpty() || parts[1].isEmpty())
|
||||||
{
|
{
|
||||||
success = false;
|
continue;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -44,7 +44,7 @@ void AuthRequest::onRequestFinished() {
|
|||||||
if (reply_ != qobject_cast<QNetworkReply *>(sender())) {
|
if (reply_ != qobject_cast<QNetworkReply *>(sender())) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
httpStatus_ = 200;
|
httpStatus_ = reply_->attribute(QNetworkRequest::HttpStatusCodeAttribute).toInt();
|
||||||
finish();
|
finish();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -94,7 +94,7 @@ bool parseXTokenResponse(QByteArray & data, Katabasis::Token &output, QString na
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if(!getString(obj.value("Token"), output.token)) {
|
if(!getString(obj.value("Token"), output.token)) {
|
||||||
qWarning() << "User Token is not a timestamp";
|
qWarning() << "User Token is not a string";
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
auto arrayVal = obj.value("DisplayClaims").toObject().value("xui");
|
auto arrayVal = obj.value("DisplayClaims").toObject().value("xui");
|
||||||
|
@ -56,6 +56,14 @@ void MinecraftProfileStep::onRequestDone(
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (error != QNetworkReply::NoError) {
|
if (error != QNetworkReply::NoError) {
|
||||||
|
qWarning() << "Error getting profile:";
|
||||||
|
qWarning() << " HTTP Status: " << requestor->httpStatus_;
|
||||||
|
qWarning() << " Internal error no.: " << error;
|
||||||
|
qWarning() << " Error string: " << requestor->errorString_;
|
||||||
|
|
||||||
|
qWarning() << " Response:";
|
||||||
|
qWarning() << QString::fromUtf8(data);
|
||||||
|
|
||||||
emit finished(
|
emit finished(
|
||||||
AccountTaskState::STATE_FAILED_SOFT,
|
AccountTaskState::STATE_FAILED_SOFT,
|
||||||
tr("Minecraft Java profile acquisition failed.")
|
tr("Minecraft Java profile acquisition failed.")
|
||||||
|
Loading…
Reference in New Issue
Block a user