Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Network error
Qt 6.11 is out! See what's new in the release blog

Network error

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 3 Posters 2.1k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    MartinD
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    0
    • VRoninV Offline
      VRoninV Offline
      VRonin
      wrote on last edited by
      #2

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

      "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
      ~Napoleon Bonaparte

      On a crusade to banish setIndexWidget() from the holy land of Qt

      1 Reply Last reply
      3
      • M Offline
        M Offline
        MartinD
        wrote on last edited by
        #3

        @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.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          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.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved