-
Notifications
You must be signed in to change notification settings - Fork 17
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
Error in open.connection(con, "rb") : Timeout was reached #10
Comments
Thanks, I'll check into it and see what can be done. |
@PRoyal22, did this repeatedly happen? I just tried the station/years you specified. It failed the first time, but the second time and third it worked fine. It seems to be an issue with the connection, rather than the R package itself. I'll see if I can make the package fail and/or restart gracefully in these situations, but for now I'd suggest just retrying. See what year was the last downloaded and start from there. |
Thanks for checking! Tried it three times and every time it stopped after the fourth or fifth year. What I do not get with the connection problem is that it repeatedly failed for a specific year range and for other years it worked (for the same station). The problem is also not due to the large number of years as the Well, nasty bug :/ |
Thanks for the feedback. I'll keep working on it. |
@PRoyal22, I've made a few changes to the function that should help fix the problem. Since I'm unable to reliably recreate this issue, could I ask you to install the version from my GitHub master branch rather than CRAN and see if I've fixed the issue? |
@adamhsparks installed via Github and it works now, thanks! For future development, a convenience option merging all downloaded yearly files into one .csv file would be great! Maybe I find some time to contribute! Regards, |
That's great! Thanks for the help. I do agree about merging the output files into one file. I'll open another issue for that. I'll close this now. |
Fixed with commit a126641 |
Error in open.connection(con, "rb") : Timeout was reached
I am trying to open one Web Based Flat file and i get Time Out error, Can any one help please? Thanks in Advance! |
I am importing the CSV file from below location using read_fwf() Function. |
@ckumarMT, again this doesn't appear to be related to this issue or the |
Ok Thank you it is related to readr library |
Hi library(rvest) Error in open.connection(x, "rb") : Timeout was reached |
Hi, @amine67. Please see the immediate prior comment to yours. This error has nothing to do with the |
Thank you ... how to overcome it ? |
I don't know. You're asking in the wrong place as your question is not related to the |
Just tried your function using the following setting:
GSODR::get_GSOD(years = 1973:2015, path = "~/Downloads/", station = "080250-99999")
Failing with the error above. If I set years to 2003:2015, everything works.
Thanks for checking!
The text was updated successfully, but these errors were encountered: