You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have run into an issue while trying to download metadata (and sequences) in batches of 5000:
df_test <- query(
credentials = credentials,
location = "Denmark",
from = "2019-07-26",
to = "2020-10-28",
fast = TRUE
)
df_test <- df_test %>%
mutate(batchnumber = floor(row_number()/5000)+1)
for (b in unique(df_test$batchnumber)){
print(b)
this_batch <- df_test %>%
filter(batchnumber == b)
full_df <- download(credentials = credentials, list_of_accession_ids = this_batch$accession_id, get_sequence=FALSE)
write_csv(full_df, paste0("batchnummer_", b, ".csv"))
}
It crashes during the download command with the output
Selecting entries...
Compressing data. Please wait...
Data ready.
Error in send_request(method = "POST", data = data) : Server error!
In addition: Warning message:
In send_request(method = "POST", data = data) :
An error occurred while trying to POST https://www.epicov.org/epi3/frontend?
I am using GISAIDR version 0.9.10.
Can you help? :)
Thank you in advance,
Cheers,
Amanda
The text was updated successfully, but these errors were encountered:
Thanks for the issue! I’ll look into it this week. In the meantime just wanted to confirm you can download batches smaller than 5000 E.g1000? The server error warning makes me think it’s something on the GIDAID side. Sometimes they change the download limits for different accounts. You could also try manually downloading a single batch of 5000 from GISAID to confirm your account limit.
Hi Amanda, glad you found a temporary work around. It might be some sort of HTTP timeout with the large file size. I’ll do some testing and get back to you.
Hello :)
Thank you for this super useful package!
We have run into an issue while trying to download metadata (and sequences) in batches of 5000:
It crashes during the download command with the output
Selecting entries...
Compressing data. Please wait...
Data ready.
Error in send_request(method = "POST", data = data) : Server error!
In addition: Warning message:
In send_request(method = "POST", data = data) :
An error occurred while trying to POST https://www.epicov.org/epi3/frontend?
I am using GISAIDR version 0.9.10.
Can you help? :)
Thank you in advance,
Cheers,
Amanda
The text was updated successfully, but these errors were encountered: