qt6.6 network get "The credentials were not recognized "
-
@jsulm it's a http request。this is a login case。user pass username and password to login。
most people it work fine,but a few man it work error。@lingxing said in qt6.6 network get "The credentials were not recognized ":
user pass username and password to login
Then you will need to show your code so that others can see how your assembling the GET request with credentials.
-
@jsulm it's a http request。this is a login case。user pass username and password to login。
most people it work fine,but a few man it work error。 -
@lingxing said in qt6.6 network get "The credentials were not recognized ":
most people it work fine,but a few man it work error
As @jsulm says. Show one example of username/password which works and one which does not.
-
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)) -
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?
-
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。 -
-