Skip to content

Commit 1364059

Browse files
committed
add new BASE error
1 parent 30f2f1b commit 1364059

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

  • server/preprocessing/other-scripts

server/preprocessing/other-scripts/utils.R

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,9 @@ detect_error <- function(failed, service) {
110110
if (grepl("xml_find_first", failed$query_reason, fixed=TRUE)){
111111
reason <- c(reason, 'API error: BASE not reachable')
112112
}
113+
if (grepl("read_xml.raw", failed$query_reason, fixed=TRUE)){
114+
reason <- c(reason, 'API error: BASE not reachable')
115+
}
113116
}
114117
if (length(reason) == 0 && service == 'pubmed') {
115118
if (startsWith(failed$query_reason, "HTTP failure: 500") && grepl("error forwarding request", failed$query_reason, fixed=TRUE)){

0 commit comments

Comments
 (0)