-
Notifications
You must be signed in to change notification settings - Fork 340
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
显示“网络请求错误”是怎么回事 #3
Comments
@yujiahuahua 不清楚,我这是正常的 |
我也遇到相同的问题,换电脑都不行,应该是和网络有关,我用的是移动的宽带 |
@yujiahuahua @wjfengkook 代码有个遗留小问题,试试 Release 新上传的版本 |
0.9.5.4版本还是有这个问题! |
@wjfengkook 那我也没办法,我不知道你那具体情况是什么,没办法复现,不知道哪个环节出了问题。 // Network.cpp
std::pair<QJsonObject, QString> Bili::parseReply(QNetworkReply *reply, const QString& requiredKey)
{
if (reply->error() != QNetworkReply::NoError) {
qDebug() << "network error:" << reply->errorString() << ", url=" << reply->url().toString();
return { QJsonObject(), "网络请求错误" };
}
if (!reply->header(QNetworkRequest::ContentTypeHeader).toString().contains("json")) {
return { QJsonObject(), "http请求错误" };
}
......
} 如果你需要/愿意的话,可以下载微软提供的 DebugView (1.3 MB) 来获取以上代码输出的错误提示 |
00000001 0.00000000 [1532] qt.network.ssl: No functional TLS backend was found |
@wjfengkook 感谢反馈! 你可以:
SSL 库的这个问题早在 README.md/#build-issues 提过,其中参考的 stackoverflow 回答就提到了 msvcr100.dll 依赖问题,不过我自己机器上有,当时也没在意。
libssl-1_1-x64.dll 和 libcrypto-1_1-x64.dll 一直都是有打包的。这两依赖的 dll 除了系统核心 dll 外,还有 bcrypt.dll(这个貌似也是本来就有的)和 msvcr100.dll。我从微软官方下了个 win10 虚拟机 测试,里面缺少 msvcr100.dll,问题复现了出来,加入 msvcr100.dll 后问题解决。 |
非常好,感谢修复! |
network error: "Error transferring https://api.bilibili.com/nav |
我在0.9.5.8也遇到了这个问题要怎么解决 |
The text was updated successfully, but these errors were encountered: