Skip to content

Commit

Permalink
account for empty response with status code 200
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickbarks committed Jul 10, 2024
1 parent 93ded49 commit 2c078cf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2c078cf

Please sign in to comment.