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

QNetworkReply: Differ of error and errorString

XMLWordPrintable

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

      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.

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

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

              Created:
              Updated:

                There are no open Gerrit changes