You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# raw_text <- "The hostname (redcap-db.hsc.net.ou.edu) / username (redcapsql) / password (XXXXXX) combination could not connect to the MySQL server. \r\n\t\tPlease check their values."
180
-
regex_cannot_connect<-"^The hostname \\((.+)\\) / username \\((.+)\\) / password \\((.+)\\) combination could not connect.+"
181
-
regex_empty<-"^\\s+$"
181
+
regex_cannot_connect<-"^The hostname \\((.+)\\) / username \\((.+)\\) / password \\((.+)\\) combination could not connect.+"
#If an operation is successful, the `raw_text` is no longer returned to save RAM. The content is not really necessary with httr's status message exposed.
270
+
# If an operation is successful, the `raw_text` is no longer returned to save RAM. The content is not really necessary with httr's status message exposed.
271
271
raw_text<-""
272
272
} else {
273
-
success<-FALSE#Override the 'success' determination from the http status code.
274
-
ds_2<-tibble::tibble() #Return an empty data.frame
275
-
outcome_message<- paste0("The REDCap read failed. The http status code was ", status_code, ". The 'raw_text' returned was '", raw_text, "'.")
273
+
success<-FALSE#Override the 'success' determination from the http status code.
274
+
ds_2<-tibble::tibble() #Return an empty data.frame
275
+
outcome_message<- paste0("The REDCap read failed. The http status code was ", status_code, ". The 'raw_text' returned was '", raw_text, "'.")
# raw_text <- "The hostname (redcap-db.hsc.net.ou.edu) / username (redcapsql) / password (XXXXXX) combination could not connect to the MySQL server. \r\n\t\tPlease check their values."
171
-
regex_cannot_connect<-"^The hostname \\((.+)\\) / username \\((.+)\\) / password \\((.+)\\) combination could not connect.+"
172
-
regex_empty<-"^\\s+$"
173
-
174
-
if(
175
-
any(grepl(regex_cannot_connect, raw_text)) |
176
-
any(grepl(regex_empty, raw_text))
177
-
) {
178
-
success<-FALSE
179
-
}
171
+
regex_cannot_connect<-"^The hostname \\((.+)\\) / username \\((.+)\\) / password \\((.+)\\) combination could not connect.+"
0 commit comments