Hi
Can someone please suggest a solution
Am calling an API using below
library(httr)
test <- GET("https://impi.co.f.com/in_da/api/f/Ations?Date(s)=2020-08-02&Response%20Type=csv&Async=false",
add_headers(c(Accept = "application/json",
Authorization = "06-0c-4-b9-73")))
However it fails with error :
Error in curl::curl_fetch_memory(url, handle = handle) :
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).
Same code works fine on my windows 10 laptop with R version 4.0.2
however it fails on the server which is running on the same R version
Also tried including
httr::set_config( config(ssl_verifypeer = 0L) )
config = httr::config(ssl_verifypeer = FALSE)
but it still fails on the server