r-lib / httr

httr: a friendly http package for R
https://httr.r-lib.org
Other
986 stars 1.99k forks source link

httr Error in curl::curl_fetch_memory(url, handle = handle) #757

Open analyzer79 opened 4 days ago

analyzer79 commented 4 days ago

I was using httr until recently to connect to a Workday report. However, yesterday I started running into the following error:

Error in curl::curl_fetch_memory(url, handle = handle) : Timeout was reached [wd3-services1.myworkday.com]: Operation too slow. Less than 1 bytes/sec transferred the last 600 seconds

I believe that the curl package has had some update recently that can be the cause of the issue. The report takes around 20 minutes to give a response, and it was working fine just until a week ago. According to cran curl package was updated as of November 14th 2024. Before that the script was working fine, however this error started appearing yesterday (November 19th 2024)

Using httr2, generates the same problem:

! Failed to perform HTTP request. Caused by error in curl::curl_fetch_memory(): ! Timeout was reached [wd3-services1.myworkday.com]: Operation too slow. Less than 1 bytes/sec transferred the last 600 seconds

UPDATE ----

Downgrading from curl versions (6.0.0 or 6.0.1) to curl version 5.2.3 fixes the issue