Shiny app fails: Error in value[[3L]](cond) : Calls: local ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous> Execution halted

...Hi, I am developing a shiny app that reads a folder from a sftp file, everything works locally but when I deploy this error appears: Error in value[3L] :
Calls: local ... tryCatch -> tryCatchList -> tryCatchOne ->
Execution halted

This is my code:


I guess it might be because I am writing in my code tempfile() or wirteBin function or I am not encoding my URL.. Any suggestion on what can be happening?