Debug Asserting failed when using Rest SDK

Jun 23, 2015 at 10:45 PM
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

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;

    http_response response = client.request(requester).get();
Jun 24, 2015 at 5:39 PM
Hi sggeng,

This is interesting I've never seen this assert fire before, do you have a repro you can share so I can take a deeper look at how this is being encountered? If you don't want to share with everyone feel free to directly contact me at stgates at Microsoft dot com.