Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get_last_report() returns an error #174

Open
AndreaSanchezTapia opened this issue Oct 14, 2024 · 1 comment
Open

get_last_report() returns an error #174

AndreaSanchezTapia opened this issue Oct 14, 2024 · 1 comment
Assignees

Comments

@AndreaSanchezTapia
Copy link
Member

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?

@AndreaSanchezTapia
Copy link
Member Author

I ping you here @tclavelle and will assign you but I may have some bandwidth later during the week to check this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants