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) )
I'll start by stating that I am not very familiar with these things, but I've had similar experiences. You say that the issue is only happening when running on the server, and I think that might be the clue to the answer. At my work, running scripts on the server is ok, but when they need outside access (e.g. to the internet) there are server-side restrictions and users need to get special permission to set proxys to be able to have their code talk to the outside. If not all traffic will be blocked.
If this should be the case, you have to contact the admins and ask them how you can have your code use the API.
Thanks , checked internally but there are traffic blocking being done
Strange thing is on the server when i use POSTMAN to call the API , it fails but when i disable SSL verification in POSTMAN , the request goes through
Wondering can i do something in R to disable SSL verfication
That;s beyond my knowledge I am not good when it comes to networking and connectivity so hopefully some other folk on here could answer that question. At least it seems you've got more of an idea now where the issue might be.