Skip to content

GetParametersRequest returns empty result list while the response body is not empty #1981

Answered by Mher594
Mher594 asked this question in Q&A
Discussion options

You must be logged in to vote

The issue was in the rdbuf() usage in event handler. I added it to see the response and it was not necessary so removing it fixed the issue.

request.SetDataReceivedEventHandler([](const Aws::Http::HttpRequest*, Aws::Http::HttpResponse* resp, long long) {
    std::cout << "\nResponse body:\n" << resp->GetResponseBody().rdbuf() << std::endl;
});

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by Mher594
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant