Re: [Bioc-devel] How to handle Empty reply from server from httr package

2020-12-10 Thread Martin Morgan
On the one hand, if the error is from curl I think this is the case url <- "localhost:8000" ## nothing to connect to tryCatch({ response <- GET(url) stop_for_status(response) content(response) }, error = function(e) { message(paste(class(e), collapse = " ")) stop("curl

[Bioc-devel] How to handle Empty reply from server from httr package

2020-12-10 Thread Jianhong Ou, Ph.D.
Hi all, Sometime my package got "Empty reply from server" error when I using httr package. The pseudo-code I used to handle error is like this: library(httr) APIurl <-