Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

curl Recv failure: Connection reset by peer #6

Open
xvrdm opened this issue Jul 26, 2017 · 1 comment
Open

curl Recv failure: Connection reset by peer #6

xvrdm opened this issue Jul 26, 2017 · 1 comment

Comments

@xvrdm
Copy link

xvrdm commented Jul 26, 2017

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!

@hrbrmstr
Copy link
Owner

hrbrmstr commented Jul 26, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants