Closed mattdowle closed 4 years ago
@mattdowle my apologies for the late reply.
I've tested on my computer and I got no errors or notes. What happens when you run one of those functions individually? Does it give you an error as well or returns a blank data frame?
Try to run the download_ontime
or the download_t100
functions outside of the test environment and tell me if you still have any issues.
Sure thing.
> require(skynet)
Loading required package: skynet
> download_ontime()
Error in paste("https://transtats.bts.gov/PREZIP/On_Time_Reporting_Carrier_On_Time_Performance_1987_present_", :
argument "y" is missing, with no default
> download_t100()
Please select mkt - market or seg - segment database.
Error in download_t100() :
> skynet::download_t100(2011, "mkt")
Error in curl::curl_fetch_memory(url, handle = handle) :
error:141A318A:SSL routines:tls_process_ske_dhe:dh key too small
Thank you for the extra info.
This seems to be a bug with openssl and it's not something I can change in R.
However, I would try to suggest to follow this here https://stackoverflow.com/questions/61517347/net-core-httpclient-dh-key-too-small-on-ubuntu-20-04.
This fix is for Ubuntu, but it is the same for any OS. All you have to do is to find that openssl.cnf
file.
Let me know if it worked so I can close this issue.
Thank you
Many thanks! Yes that worked. If I understand correctly, Ubuntu 20.04 (and one comment said Apple too) have increased the default security level to 2 deliberately and expect website owners to upgrade their level 1 certificates to level 2. I'm indeed running a distro based on Ubuntu 20.04. I don't mind downgrading to level 1 at all for my purposes. Perhaps you can let the owner of the website your package is downloading from that this change is on the horizon and they might wish to update their certificate.
I'm happy to hear that it worked. The data provider is the US Bureau of Transport Statistics so I wouldn't really expect them to upgrade their certificates anytime soon. In any case I'll drop my contacts a quick message so they're aware of that. Thank you.
Hi Filipe,
I'm checking revdeps as part of releasing data.table. skynet is failing for me with the following error. But I see it's passing fine on CRAN. Maybe I'm just unlucky and the file it's trying to fetch is not available starting today, perhaps. When I got the error with the new version of data.table, I tried again with the current CRAN version of data.table (1.12.8) and I still see this error with skynet. So I don't think it is due to data.table, but if you don't see it, then it might be due to my computer or environment. Any ideas?
Thanks, Matt