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 "

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

Scheduled Pinned Locked Moved Solved General and Desktop
23 Posts 4 Posters 3.2k 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 Offline
    L Offline
    lingxing
    wrote on 9 Nov 2023, 09:43 last edited by
    #9

    fiddle catch with error:
    ![alt text](1234.jpg image url)

    fiddle catch with success:
    1234567.jpg

    1 Reply Last reply
    0
    • L Offline
      L Offline
      lingxing
      wrote on 9 Nov 2023, 09:55 last edited by
      #10

      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))

      J 1 Reply Last reply 9 Nov 2023, 10:05
      0
      • L lingxing
        9 Nov 2023, 09:55

        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))

        J Offline
        J Offline
        jsulm
        Lifetime Qt Champion
        wrote on 9 Nov 2023, 10:05 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 9 Nov 2023, 10:15 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。

          J 1 Reply Last reply 13 Nov 2023, 19:53
          0
          • L Offline
            L Offline
            lingxing
            wrote on 9 Nov 2023, 10:32 last edited by
            #13

            sample code below
            link text

            1 Reply Last reply
            0
            • L Offline
              L Offline
              lingxing
              wrote on 10 Nov 2023, 04:29 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。
              J 1 Reply Last reply 10 Nov 2023, 09:28
              0
              • L lingxing
                10 Nov 2023, 04:29

                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。
                J Offline
                J Offline
                JonB
                wrote on 10 Nov 2023, 09:28 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 13 Nov 2023, 06:37
                0
                • J JonB
                  10 Nov 2023, 09:28

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

                  L Offline
                  L Offline
                  lingxing
                  wrote on 13 Nov 2023, 06:37 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?

                  J J 2 Replies Last reply 13 Nov 2023, 07:14
                  0
                  • L lingxing
                    13 Nov 2023, 06:37

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

                    J Offline
                    J Offline
                    jsulm
                    Lifetime Qt Champion
                    wrote on 13 Nov 2023, 07:14 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 13 Nov 2023, 12:00
                    2
                    • L lingxing
                      13 Nov 2023, 06:37

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

                      J Offline
                      J Offline
                      JonB
                      wrote on 13 Nov 2023, 08:00 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
                      • J jsulm
                        13 Nov 2023, 07:14

                        @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 13 Nov 2023, 12:00 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?

                        J 1 Reply Last reply 13 Nov 2023, 12:06
                        0
                        • L lingxing
                          13 Nov 2023, 12:00

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

                          J Offline
                          J Offline
                          jsulm
                          Lifetime Qt Champion
                          wrote on 13 Nov 2023, 12:06 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 13 Nov 2023, 13:08 last edited by
                            #21

                            i will try 3ks

                            1 Reply Last reply
                            0
                            • L lingxing
                              9 Nov 2023, 10:15

                              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。

                              J Offline
                              J Offline
                              JoeCFD
                              wrote on 13 Nov 2023, 19:53 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 14 Nov 2023, 08:49 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 15 Nov 2023, 02:40
                                • D daijc12 referenced this topic on 3 Sept 2024, 04:36

                                18/23

                                13 Nov 2023, 08:00

                                • Login

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