Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Network error



  • Hi,
    In Qt 5.7.1/MSVC32 I create one instance of QNetworkManager. Then I'm making several get request per minute. After several minutes/hours, I receive these errors:

    QNetworkReply::NetworkError(UnknownNetworkError) // first, error is received from error signal of QNetworkReply
    QIODevice::read (QDisabledNetworkReply): device not open // then I receive finished signal from QNetworkManager, but I receive this error on QNetworkReply readAll() method

    Can you please advise?



  • Are you deleting the QNetworkReplys after use? it might be just too much cluttering



  • @VRonin said in Network error:

    Are you deleting the QNetworkReplys after use? it might be just too much cluttering

    Yes, I call reply->deleteLater(); on finished() signal.


  • Lifetime Qt Champion

    Hi,

    I have a vague memory about a similar situation but I can't currently remember the exact sequence. In any case, if possible I'd test with the latest stable version of Qt to check whether it's still happening.


Log in to reply