Closed testmina77 closed 8 months ago
Try replacing cpr::Body
with cpr::Payload
if you want so send a basic JSON message.
"Hello World"
is being interpreted as the string length of "content"
.
This is caused by us forwarding everything to the std::string
ctr you pass to cpr::Body
.
Description
While running my program it was giving me error like this:
More info with exception.what
St12length_error - basic_string::_M_create
Example/How to Reproduce
Code:
webhooks vector equals for example this:
id/token
1193248954217930854/vqZ9krEbImBmyoXWDxBelwiECdK9CkblwuVmz7U9flcylTbc1lbqPTmnxQQYIFnqX2EB
Possible Fix
No response
Where did you get it from?
vcpkg
Additional Context/Your Environment