Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-128270

QNetworkReply: Differ of error and errorString

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 6.2.12
    • Network
    • None

    Description

      Consider this example. The post request is successful.

      QNetworkReply* reply = qNetworkAccessManager->post(request, data);
      qDebug() << "error" << reply->error();
      qDebug() << "errorString" << reply->errorString();

       
      Observed:
      The error and errorString differs. The errorString reports an unknown error.

      error: QNetworkReply::NoError
      errorString: "Unknown error"

       
       
      Expected:
      I would expect that error and errorString match, i.E. if error says there is no error than the errorString shall not report an unknown error.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            manordheim Mårten Nordheim
            s7nh2n Sebastian Hahn
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes