Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
QNetworkReply unknown error
Kayote last edited by
If you get a QNetworkReply::UnknownServerError from a reply on a http request, what could it be? All it says in the Qt doc is "an unknown error related to the server response was detected" but this doesn't normally happen, only for single users and based on this I am not able to figure out what the cause could be
JonB last edited by
(Depending on your Qt version, which you do not mention) from https://code.woboq.org/qt5/qtbase/src/network/access/qhttpthreaddelegate.cpp.html the server is returning a 500+ code which is not one of the more usual 500, 501 or 503. You will probably have to look at what is going on server-side to get a better idea, unless you can spot something odd in the client request.
Pablo J. Rogina last edited by Pablo J. Rogina
@Kayote from same source code @JonB mentioned, you'll see that the string error you've got is the return value of method statusCodeFromHttp(httpReply->statusCode(), httpRequest.url()) so httpReply->statusCode() provides the actual numeric value >500 that the server sends.