403 Forbidden - The HTTP request was forbidden with client authentication scheme 'Anonymous'

I got this error after swithcing TRKD endpoint hostname from "api.rkd.reuters.com" to "api.rkd.refinitiv.com":

System.Net.WebException: The remote server returned an error: (403) Forbidden. 
System.ServiceModel.Security.MessageSecurityException: The HTTP request was forbidden with client authentication scheme 'Anonymous'. ---> System.Net.WebException: The remote server returned an error: (403) Forbidden. at System.Net.HttpWebRequest.GetResponse() at System.ServiceModel.Channels.HttpChannelFactory`1.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout) 

The new endpoint was tested successfully locally. What is the possible reason why it's failing on a server?

Best Answer

  • Gurpreet
    Answer ✓

    Hi @jlai, The URL endpoint is valid and I can successfully get data from it. From the exception it looks like that there is a certificate issue with the machine you are trying to run it. Is the OS on the machine current with all the security and OS updates applied.

    Try navigating to the https://api.rkd.refinitiv.com in the browser and see if that works. Eventually you have to get your server machine to recognize the certificate associated with https://api.rkd.refinitiv.com.