From 2c078cf44a496d419c499ee28faadafc93e8236c Mon Sep 17 00:00:00 2001 From: patrickbarks Date: Wed, 10 Jul 2024 09:52:20 +0200 Subject: [PATCH] account for empty response with status code 200 --- R/utils.R | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/R/utils.R b/R/utils.R index a30306c..5024797 100644 --- a/R/utils.R +++ b/R/utils.R @@ -249,6 +249,10 @@ post_wrapper <- function(conn, progress = FALSE ) ) + + if (is.null(out)) { + stop("Response from REDCap API has status 200 but is empty") + } } out