Hi All,
We have a job running that has stopped working. Our discovery services calls returns a content length of -1.
public static bool DiscoverServices(string url = null) { if (string.IsNullOrEmpty(url)) url = _discoveryUrl; string param_url = url + "?transport=websocket"; //Console.WriteLine("Sending service discovery request to {0}\n", param_url); HttpWebRequest webRequest = (HttpWebRequest)WebRequest.Create(param_url); webRequest.Headers.Add("Authorization", "Bearer " + _authToken); webRequest.AllowAutoRedirect = false; webRequest.UserAgent = "CSharpMarketPriceEdpGwServiceDiscoveryExample"; try { HttpWebResponse webResponse = (HttpWebResponse)webRequest.GetResponse(); if (webResponse.ContentLength > 0)
We get a fine token however webResponse.ContentLength has started returning -1. Any pointers what could cause this?