When using R for posting json to a web api I got the error
Error in curl::curl_fetch_memory(url, handle = handle) :
Stream error in the HTTP/2 framing layer
But only after the first successful run. Strange. Something was hanging the handle in the background. Or that was my guess at least.
Anyway, if I set the version back to HTTP/1.1 it works fine.
Here is the gist of it