Skip to content

CSVs are failing to upload to ACAS #833

@brianbolt

Description

@brianbolt

Error is:

rservices_1  | 2021-12-02 00:41:30 WARNING:com.mcneilco.acas.genericDataParser:restarting interrupted promise evaluation
rservices_1  | 2021-12-02 00:41:30 ERROR:com.mcneilco.acas.genericDataParser:invalid multibyte string, element 1
rservices_1  | 2021-12-02 00:41:30 ERROR:com.mcneilco.acas.genericDataParser:Traceback:
rservices_1  | 1: runFunction()
rservices_1  | c("2: runMain(pathToGenericDataFormatExcelFile, reportFilePath = reportFilePath, ", "2:     dryRun = dryRun, developmentMode = developmentMode, configList = configList, ", "2:     testMode = testMode, recordedBy = recordedBy, imagesFile = imagesFile, ", "2:     errorEnv = errorEnv)")
rservices_1  | 3: readExcelOrCsv(fullPathToFile)
rservices_1  | c("4: tryCatch({", "4:     fileEncoding <- getFileEncoding(filePath)", "4:     output <- read.csv(filePath, header = header, na.strings = \"\", ", "4:         stringsAsFactors = FALSE, fileEncoding = fileEncoding)", "4: }, error = function(e) {", "4:     stopUser(\"Cannot read input csv file\")", "4: })")
rservices_1  | 5: tryCatchList(expr, classes, parentenv, handlers)
rservices_1  | 6: tryCatchOne(expr, names, parentenv, handlers[[1L]])
rservices_1  | 7: doTryCatch(return(expr), name, parentenv, handler)
rservices_1  | c("8: .signalSimpleWarning(\"input string '\\xff\\xfe' cannot be translated to UTF-8, is it valid in 'ANSI_X3.4-1968'?\", ", "8:     base::quote(doTryCatch(return(expr), name, parentenv, handler)))")
rservices_1  | c("9: withRestarts({", "9:     .Internal(.signalCondition(simpleWarning(msg, call), msg, ", "9:         call))", "9:     .Internal(.dfltWarn(msg, call))", "9: }, muffleWarning = function() NULL)")
rservices_1  | 10: withOneRestart(expr, restarts[[1L]])
rservices_1  | 11: doWithOneRestart(return(expr), restart)
rservices_1  | c("12: (function (wn) ", "12: {", "12:     if (getOption(\"warn\") >= 2) ", "12:         return()", "12:     if (getOption(\"warn\") >= 0) {", "12:         handle_condition(wn)", "12:         output_handler$warning(wn)", "12:     }", "12:     invokeRestart(\"muffleWarning\")", "12: })(structure(list(message = \"input string '\\xff\\xfe' cannot be translated to UTF-8, is it valid in 'ANSI_X3.4-1968'?\", ", "12:     call = doTryCatch(return(expr), name, parentenv, handler)), class = c(\"simpleWarning\", ", 
rservices_1  | "12: \"warning\", \"condition\")))")
rservices_1  | 13: output_handler$warning(wn)
rservices_1  | 14: logger$warn(x$message)
rservices_1  | 15: log(loglevels["WARN"], ...)
rservices_1  | 16: composer_f(msg, ...)
rservices_1  | 2021-12-02 00:41:30 ERROR:com.mcneilco.acas.genericDataParser:R frames dumped to: /tmp/file139ad1633fd1e.rda
rservices_1  | 2021-12-02 00:41:30 INFO:com.acas.runrfunction:Loading required package: brew
rservices_1  | 2021-12-02 00:41:30 ERROR:com.acas.runrfunction:unable to escape string. String is not utf8

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions