qt6.6 network get "The credentials were not recognized "
-
wrote on 9 Nov 2023, 09:43 last edited by
-
wrote on 9 Nov 2023, 09:55 last edited by
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)) -
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))@lingxing It would be helpful if you would provide information asked (like code or example of username/password)...
-
wrote on 9 Nov 2023, 10:15 last edited by
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。 -
wrote on 10 Nov 2023, 04:29 last edited by
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。
-
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。
-
i only use this code (getrequest.cpp),no other code to set up ssl。
do i neet to set up ssl by myself?@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 -
i only use this code (getrequest.cpp),no other code to set up ssl。
do i neet to set up ssl by myself? -
@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 -
@jsulm yes,i have libcrypto-3-x64.dll with my application together。because one sdk depend it。 this make effect for my qt application?
@lingxing As far as I know there are two libraries needed for SSL support: libssl and libcrypto
-
wrote on 13 Nov 2023, 13:08 last edited by
i will try 3ks
-
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。wrote on 13 Nov 2023, 19:53 last edited by JoeCFD@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 -
wrote on 14 Nov 2023, 08:49 last edited by
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。
-
-
18/23