Open AndreaSanchezTapia opened 5 hours ago
After a large request that times out, like:
get_raster(spatial_resolution = 'LOW', temporal_resolution = 'DAILY', group_by = 'VESSEL_ID', start_date = "2016-01-01", end_date="2016-12-30", region = 8486, region_source = 'EEZ', key = gfw_auth())
I get:
Error in paste("Request caused a warning:", url) : cannot coerce type 'closure' to vector of type 'character'
The traceback here:
7. paste("Request caused a warning:", url) at get_last_report.R#86 6. message(paste("Request caused a warning:", url)) at get_last_report.R#86 5. value[[3L]](cond) 4. tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]), names[nh], parentenv, handlers[[nh]]) 3. tryCatchList(expr, classes, parentenv, handlers) 2. tryCatch({ if (response$headers$`content-type` == "application/zip") { response <- response %>% httr2::resp_body_raw(.) temp <- tempfile() ... at get_last_report.R#47 1. get_last_report()
So basically it's how it handles errors or temporal zipfiles?
I ping you here @tclavelle and will assign you but I may have some bandwidth later during the week to check this.
After a large request that times out, like:
I get:
The traceback here:
So basically it's how it handles errors or temporal zipfiles?