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. qt6.6 network get "The credentials were not recognized "
Forum Updated to NodeBB v4.3 + New Features

qt6.6 network get "The credentials were not recognized "

Scheduled Pinned Locked Moved Solved General and Desktop
23 Posts 4 Posters 3.9k Views
  • 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.
  • L lingxing

    qtnetwork:QHttpThreadDelegate log

    Debug: QHttpThreadDelegate::startRequest() thread= 0x13dc ((null):0, (null))
    Debug: QHttpThreadDelegate::finishedWithErrorSlot() thread= 0x13dc error= QNetworkReply::UnknownNetworkError "The credentials were not recognized / Invalid argument" ((null):0, (null))

    when success,the log is :
    Debug: QHttpThreadDelegate::startRequest() thread= 0x25f4 ((null):0, (null))
    Debug: QHttpThreadDelegate::headerChangedSlot() thread= 0x25f4 ((null):0, (null))
    Debug: QHttpThreadDelegate::finishedSlot() thread= 0x25f4 result= 400 ((null):0, (null))

    jsulmJ Offline
    jsulmJ Offline
    jsulm
    Lifetime Qt Champion
    wrote on last edited by
    #11

    @lingxing It would be helpful if you would provide information asked (like code or example of username/password)...

    https://forum.qt.io/topic/113070/qt-code-of-conduct

    1 Reply Last reply
    1
    • L Offline
      L Offline
      lingxing
      wrote on last edited by
      #12

      something,the problem not happen on sdk qt6.4.3。
      before i use qt6.4.3 for a long tome,when i update sdk to 6.6.0,meet the problem。

      JoeCFDJ 1 Reply Last reply
      0
      • L Offline
        L Offline
        lingxing
        wrote on last edited by
        #13

        sample code below
        link text

        1 Reply Last reply
        0
        • L Offline
          L Offline
          lingxing
          wrote on last edited by
          #14

          the situation is blow:

          • the error occur on a few compture,and always happen。the error happen don't relate to which url i request。every 'https request' will lead to the error。
          JonBJ 1 Reply Last reply
          0
          • L lingxing

            the situation is blow:

            • the error occur on a few compture,and always happen。the error happen don't relate to which url i request。every 'https request' will lead to the error。
            JonBJ Online
            JonBJ Online
            JonB
            wrote on last edited by
            #15

            @lingxing This is different from what you said previously. What/how have you set up SSL?

            L 1 Reply Last reply
            0
            • JonBJ JonB

              @lingxing This is different from what you said previously. What/how have you set up SSL?

              L Offline
              L Offline
              lingxing
              wrote on last edited by lingxing
              #16

              @JonB
              20231113-143953.jpg

              i only use this code (getrequest.cpp),no other code to set up ssl。
              do i neet to set up ssl by myself?

              jsulmJ JonBJ 2 Replies Last reply
              0
              • L lingxing

                @JonB
                20231113-143953.jpg

                i only use this code (getrequest.cpp),no other code to set up ssl。
                do i neet to set up ssl by myself?

                jsulmJ Offline
                jsulmJ Offline
                jsulm
                Lifetime Qt Champion
                wrote on last edited by
                #17

                @lingxing Please post code as text, not pictures.
                What @JonB probably means is whether you provide OpenSSL libs together with your application. You can find out if you set QT_DEBUG_PLUGINS env variable to one in the terminal where you start your app and check its output. See https://doc.qt.io/qt-6/debug.html
                Also see https://doc.qt.io/qt-5/windows-requirements.html

                https://forum.qt.io/topic/113070/qt-code-of-conduct

                L 1 Reply Last reply
                2
                • L lingxing

                  @JonB
                  20231113-143953.jpg

                  i only use this code (getrequest.cpp),no other code to set up ssl。
                  do i neet to set up ssl by myself?

                  JonBJ Online
                  JonBJ Online
                  JonB
                  wrote on last edited by
                  #18

                  @lingxing
                  As @jsulm has said. I don't doubt that your SSL code is correct. You have runtime behaviour which might indicate a problem with SSL/https, you need to check that your runtime OpenSSL is installed and acting correctly.

                  1 Reply Last reply
                  0
                  • jsulmJ jsulm

                    @lingxing Please post code as text, not pictures.
                    What @JonB probably means is whether you provide OpenSSL libs together with your application. You can find out if you set QT_DEBUG_PLUGINS env variable to one in the terminal where you start your app and check its output. See https://doc.qt.io/qt-6/debug.html
                    Also see https://doc.qt.io/qt-5/windows-requirements.html

                    L Offline
                    L Offline
                    lingxing
                    wrote on last edited by
                    #19

                    @jsulm yes,i have libcrypto-3-x64.dll with my application together。because one sdk depend it。 this make effect for my qt application?

                    jsulmJ 1 Reply Last reply
                    0
                    • L lingxing

                      @jsulm yes,i have libcrypto-3-x64.dll with my application together。because one sdk depend it。 this make effect for my qt application?

                      jsulmJ Offline
                      jsulmJ Offline
                      jsulm
                      Lifetime Qt Champion
                      wrote on last edited by
                      #20

                      @lingxing As far as I know there are two libraries needed for SSL support: libssl and libcrypto

                      https://forum.qt.io/topic/113070/qt-code-of-conduct

                      1 Reply Last reply
                      2
                      • L Offline
                        L Offline
                        lingxing
                        wrote on last edited by
                        #21

                        i will try 3ks

                        1 Reply Last reply
                        0
                        • L lingxing

                          something,the problem not happen on sdk qt6.4.3。
                          before i use qt6.4.3 for a long tome,when i update sdk to 6.6.0,meet the problem。

                          JoeCFDJ Offline
                          JoeCFDJ Offline
                          JoeCFD
                          wrote on last edited by JoeCFD
                          #22

                          @lingxing Are you using openssl-3 now?
                          https://www.qt.io/blog/moving-to-openssl-3-in-binary-builds-starting-from-qt-6.5-beta-2

                          1 Reply Last reply
                          0
                          • L Offline
                            L Offline
                            lingxing
                            wrote on last edited by
                            #23

                            i think it may be effect for me。the question can close now。if has problem, i will ask again。thanks for all of you。

                            1 Reply Last reply
                            0
                            • L lingxing has marked this topic as solved on
                            • D daijc12 referenced this topic on

                            • Login

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