Quantcast
Channel: WE MOVED to github.com/microsoft/cpprestsdk. This site is not monitored!
Viewing all articles
Browse latest Browse all 4845

New Post: Debug Asserting failed when using Rest SDK

$
0
0
Assertion:
Program: ...Source\temp6\UpWin\bin\x64\Debug\AppX\cpprest120d_app_2_6.dll
File: c:\jenkins\build\arch\dev12_64\config\Debug\libtype\Shared\Release\src\build..\http\client\http_client_winrt.cpp
Line: 232

Expression: m_read_length >= count

Environment:
Windows 8, Visual Studio 2013. windows store apps, using C++ Rest SDK in a native c++ DLL

Source code:
    //set the URi of the request
    http_client client(uri.to_uri());

    // get the body as utf8 string
    std::string stringRequestBodyFromRequest;
    Error error;
    bool success = IOStreamUtils::ReadFullyAsString(strRequest->GetBodyAsInputStream(), stringRequestBodyFromRequest, error);

    http_request requester;
    requester.set_method(methods::POST);
    requester.set_body(stringRequestBodyFromRequest);

    http_response response = client.request(requester).get();

Viewing all articles
Browse latest Browse all 4845

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>