curl Recv failure: Connection reset by peer
Created by: xvrdm
I used this library without problems a few month ago. However, I installed it on two new computers (ubuntu) today and got the same error.
I am working with a minimal example:
splash_container <- start_splash()
render_html(url = "https://www.qwant.com/")
stop_splash(splash_container)
It works well when I run the commands one by one. But when I try to run the three commands in one go, I get the error below after render_html
:
Error in curl::curl_fetch_memory(url, handle = handle) :
Recv failure: Connection reset by peer
I am not sure what the error is, but I managed to get around it by adding Sys.sleep(2)
after start_splash()
. Is it possible that render_html
is called too fast? Before the container created by start_splash
is fully loaded and operational?
Thanks a lot for making this package!