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

getDaymet() syntax error #97

Open
ADLCero opened this issue Jun 6, 2024 · 2 comments
Open

getDaymet() syntax error #97

ADLCero opened this issue Jun 6, 2024 · 2 comments

Comments

@ADLCero
Copy link

ADLCero commented Jun 6, 2024

I've heavily used getDaymet() to get precipitation data for my work for the past year. However, for the past days (June 2024), it consistently takes longer for the function to run and gives back an error that says:

syntax error, unexpected WORD_WORD, expecting SCAN_ATTR or SCAN_DATASET or SCAN_ERROR. The proxy server received an invalid response from an upstream server. The proxy server could not handle the request. Error reading from remote server.

Screenshot 2024-06-06 at 19 10 00

Any ideas why this is happening and what the solution can be?

The error occurs regardless of AOI used and can be replicated using this code:

library(climateR)
library(AOI)

start_date <- "1980-10-01"
end_date <- "2021-09-30"

Daymet_precip <- getDaymet(aoi_get(state = "MI"),
                             varname = "prcp",
                             startDate = start_date,
                             endDate = end_date)
@mikejohnson51
Copy link
Owner

Hi @ADLCero thanks for reaching out! I suspect this is related to this mikejohnson51/climateR-catalogs#16 and is in the queue to be fixed. Thanks!

@Schneiberg
Copy link

Hi there.

I believe this issue also occurs with the getCHIRPS function, but not for all years. It worked perfectly from 1981 to 1994. However, for the following years, the error appears with the message "syntax error, unexpected $end, expecting SCAN_ATTR or SCAN_DATASET or SCAN_ERROR."

library(climateR)
library(AOI)

y_chrp <- climateR::getCHIRPS(AOI = shp1, timeRes = "daily", startDate = "2023-01-01", endDate = "2023-12-31")

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

3 participants