gshs-ornl / wbstats

wbstats: An R package for searching and downloading data from the World Bank API
http://gshs-ornl.github.io/wbstats/
Other
127 stars 23 forks source link

Timeout was reached: [api.worldbank.org] Operation timed out #45

Closed gdickens closed 1 month ago

gdickens commented 1 month ago

I've been unable to download data using the wb_data() function in R (v 4.4.0).

It was working fine until recently, so is perhaps because the WB API is down(?). However, I could find nothing on the World Bank's website to suggest this was the case.

When I run the code below I receive the error:

"Error in curl::curl_fetch_memory(url, handle = handle) : Timeout was reached: [api.worldbank.org] Operation timed out after 20003 milliseconds with 0 bytes received"

I've tried changing my internet connection and increasing the timeout.

`library(wbstats)

my_indicators <- c("SP.POP.TOTL", "NY.GDP.MKTP.CD", "SL.UEM.TOTL.ZS", "SP.DYN.CBRT.IN")

df <- wb_data(my_indicators)`

gdickens commented 1 month ago

Seems to be working now. Perhaps the API was temporarily down.