Vidar Ingason
05/25/2024, 1:45 PMnixtlar
R package.
Every now and then I get this error:
fcst <- nixtla_client_forecast
df = data_tbl,
h = horizon,
id_col = "unique_id",
time_col = "ds",
target_col = "y",
finetune_steps = 50,
model = "timegpt-1-long-horizon",
X_df = x_df
)
Frequency chosen: D
Error in `httr2::req_perform()`:
! Failed to perform HTTP request.
Caused by error in `curl::curl_fetch_memory()`:
! Timeout was reached: [<http://dashboard.nixtla.io|dashboard.nixtla.io>] SSL/TLS connection timeout
Then I run exactly the same code few seconds later and everything works.
Is this problem with the R package or the TimeGPT api?
I'm planning to use TimeGPT for a client of mine which needs updates every day. I will schedule the code to run so it's not like I'm monitoring the process. I'm a bit scared that every now and then the client won't get his updatd forecast because I got an error. I could add some retry mechanism but I'm curious if this is something that could be fixed.Vidar Ingason
05/25/2024, 2:56 PMVidar Ingason
05/25/2024, 5:06 PMMax (Nixtla)
05/25/2024, 11:07 PMMariana Menchero
05/26/2024, 12:31 AMVidar Ingason
05/27/2024, 9:52 AMfuture_tbl <- data_tbl %>%
future_frame(.date_var = ds, .length_out = 12) %>%
mutate(month = month(ds), unique_id = "id") %>%
mutate(ds = ds - days(1))
Mariana Menchero
05/27/2024, 7:22 PMnixtlar
as I made some changes recently and will do some more once I incorporate the retry functionality to prevent the error you mentioned before.