Skip to content
Prev 15092 / 15274 Next

Error with getSymbols('SP500', from = "2020-01-01", to = "2021-06-30", src='FRED') SP500<-na.locf(SP500, na.rm = TRUE)

I upgraded to R 4.2.2. I also installed quantmod, TTR, chron and a few other packages. I'm getting the same 

Error in getSymbols.FRED(Symbols = "SP500", env = <environment>, verbose = FALSE,  : 
  Unable to import "SP500".
schannel: next InitializeSecurityContext failed: SEC_E_ILLEGAL_MESSAGE (0x80090326) - This error usually occurs when a fatal SSL/TLS alert is received (e.g. handshake failed).
Calls: getSymbols -> do.call -> getSymbols.FRED
Execution halted

Error message. I was running code last week that had been upgraded for the switch from http: to https: on FRED. Probably r 4.0.5.

Thanks,

Frank
Chicago

-----Original Message-----
From: Daniel Cegie?ka 
Sent: Monday, November 07, 2022 10:45 AM
To: Joshua Ulrich <josh.m.ulrich at gmail.com>
Cc: Frank <frankm60606 at gmail.com>; r-sig-finance at r-project.org
Subject: Re: [R-SIG-Finance] Error with getSymbols('SP500', from = "2020-01-01", to = "2021-06-30", src='FRED') SP500<-na.locf(SP500, na.rm = TRUE)

Hi Josh,

schannel: next InitializeSecurityContext failed: SEC_E_ILLEGAL_MESSAGE
(0x80090326) - This error usually occurs when a fatal SSL/TLS alert is received (e.g. handshake failed).

This looks like a problem (not a bug in getSymbols) with the TLS cipher suites. Try direct curl/libcurl. I think you will get the same error.

Best,
Daniel

pon., 7 lis 2022 o 17:33 Joshua Ulrich <josh.m.ulrich at gmail.com> napisa?(a):