I tried something like this, but the retrying-Error occures again:
fromDatePT = "2021-07-12"
getData = sapply(fromDatePT, function(x) {
tryCatch(
{
dt.Wed <- GetRemoteData(source = "Montel", requestType = "trade", fromDate = fromDatePT, toDate = "", v.ids = c("EEX DEB D2"))
}, error = function(msg){
return(NA)
}
)
})