fImports not working. Error: certificate common name doesn't match requested host name
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
fimport (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
I am getting the following error for this code;
library(fImport)
x <- fredImport(query = "MPRIME")
--2016-07-25 15:51:22-- http://
Resolving research.
Connecting to research.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https:/
--2016-07-25 15:51:23-- https:/
Resolving fred.stlouisfed
Connecting to fred.stlouisfed
ERROR: certificate common name “research.
To connect to fred.stlouisfed.org insecurely, use ‘--no-check-
Read 0 items
Warning message:
In download.file(url = url, destfile = tmp) :
download had nonzero exit status
I believe this is a bug, a possible fix could be in file R/import-fred.R line 84, add the argument: extra = "--no-check-
download.file(url = url, destfile = tmp, extra = "--no-check-
Which should bypass the certification of the url. I have written this into a function fredImport2 to test and this is the response;
x <- fredImport2(query = "MPRIME")
--2016-07-25 15:57:05-- http://
Resolving research.
Connecting to research.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https:/
--2016-07-25 15:57:05-- https:/
Resolving fred.stlouisfed
Connecting to fred.stlouisfed
WARNING: certificate common name “research.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/plain]
Saving to: “/tmp/RtmpRzvEE
0K .......... ..... 144K=0.1s
2016-07-25 15:57:05 (144 KB/s) - “/tmp/RtmpRzvEE
Read 824 items
(using ‘fImport’ version 3000.82, on RStudio Server, Platform: x86_64-pc-linux-gnu (64-bit),
Running under: CentOS release 6.3 (Final))
summary: |
- fredImports not working. Error: certificate common name doesn't match + frImports not working. Error: certificate common name doesn't match requested host name |
summary: |
- frImports not working. Error: certificate common name doesn't match + fImports not working. Error: certificate common name doesn't match requested host name |