相关文章推荐
留胡子的电影票  ·  Install and Set Up ...·  3 周前    · 
酒量大的拐杖  ·  Java ...·  1 年前    · 
不敢表白的钥匙扣  ·  Temporal Trends and ...·  1 年前    · 
礼貌的绿茶  ·  mysql 批量更新 - 知乎·  1 年前    · 
Collectives™ on Stack Overflow

Find centralized, trusted content and collaborate around the technologies you use most.

Learn more about Collectives

Teams

Q&A for work

Connect and share knowledge within a single location that is structured and easy to search.

Learn more about Teams

Error in curl::curl_fetch_memory(url, handle = handle) : Timeout was reached: Send failure: Connection was reset

Ask Question

I am trying to extract comments from 5000 videos from Youtube's API. My code works perfectly when I download 5 videos or more but when I plug the entire list of videos that I want, it throws the below error after running for hours. I am not sure what it means or if it is a memory problem. Thank you!

Line of code in R:

 comments_1 <- CollectDataYoutube(video1,key,writeToFile = FALSE)

video1: is a list of 5 thousand videos codes that I have so that the API extracts comments from it directly.

key: is my API key stored in an object

Error message:

Error in curl::curl_fetch_memory(url, handle = handle) : Timeout was reached: Send failure: Connection was reset

Thanks for contributing an answer to Stack Overflow!

  • Please be sure to answer the question. Provide details and share your research!

But avoid

  • Asking for help, clarification, or responding to other answers.
  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.