QNativeSocketEngine::write() was called on an uninitialized socket device when trying to make PUT request
-
Hello, I'm trying to make a PUT request to my REST API with QNetworkAccessManager, but the following error occurs: "QNativeSocketEngine::write() was called on an uninitialized socket device"
Any tips on how to solve this? Thanks a lot.
-
Hi,
Which version of Qt ?
On which OS ?
Can you show how you are making your request ? -
Nevermind: fixed with QNetworkRequest::setAttribute(QNetworkRequest::Http2AllowedAttribute, false);
Thank you for your attention.