From 8cb79e5be49c805a206e01717217de7cbf95f552 Mon Sep 17 00:00:00 2001 From: aleksanderbl29 <73799306+aleksanderbl29@users.noreply.github.com> Date: Thu, 28 Nov 2024 09:04:02 +0100 Subject: [PATCH] Properly parse error messages This should catch most errors with the old config --- R/dst_get_data.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/dst_get_data.R b/R/dst_get_data.R index 9681877..0c5fe7a 100644 --- a/R/dst_get_data.R +++ b/R/dst_get_data.R @@ -80,7 +80,7 @@ dst_get_data <- function(table, # Make sure the returned status is OK if (httr::status_code(dst_data) != 200) { - stop(httr::content(dst_data, as = "text", encoding = "UTF-8")$message) + stop(httr::content(dst_data, encoding = "UTF-8")$message) } # Get the content