Difficulty with BugzScout.net due to proxy server

I am trying to use Fogbugz BugzScout to automatically send excluded exceptions from an application to my Fogbugz on demand account. I wrote a wrapper class for it, and everything seems to be just groovy - on my box. Testing the same code in a production environment, behind a proxy server that requires authentication, I had nothing but problems.

I went to work modifying the BugzScout code to force it to authenticate using a proxy server, and after you tried many different methods suggested by Google search, I found one that works! But now I get the “Connection actively refused” error from Fogbugz itself, and I don’t know what to do.

Here is the code that BugzScout connects via .net WebClient to send a new case, with my changes regarding our proxy. What am I doing that will make Fogbug refuse my request? I removed all non-web client code from the procedure for readability.

public string Submit(){ WebClient client = new WebClient(); WebProxy proxy = new WebProxy(); proxy.UseDefaultCredentials = true; client.Proxy = proxy; Byte[] response = client.DownloadData(fogBugzUrl); string responseText = System.Text.Encoding.UTF8.GetString(response); return (responseText == "") ? this.defaultMsg : responseText; } 

The correct URL and the register is filled in correctly - this is confirmed.

EDIT: More info.

  • Using Fogbugz on request.
  • Using the full FogBugz.net code, only with these add-ons
  WebProxy proxy = new WebProxy ();
        proxy.UseDefaultCredentials = true;            
        client.Proxy = proxy; 
+4
source share
2 answers

Got a fix from Fogbugz - this is the appropriate network code to get proxy authentication, and not with an authentication error with Bugzscout.

 WebRequest.DefaultWebProxy.Credentials = CredentialCache.DefaultNetworkCredentials; WebRequest request = WebRequest.Create(fogBugzUrl); request.ContentType = "application/x-www-form-urlencoded"; request.Method = "POST"; request.Proxy.Credentials = CredentialCache.DefaultNetworkCredentials; Stream requestStream = request.GetRequestStream(); requestStream.Write(bytes, 0, bytes.Length); requestStream.Close(); 
+3
source

Is your fogbugzUrl using basic HTTP authentication? Is it SSL (Is On On Demand Supported?)

It was reported that the active message refused the web server itself, and not FogBugz.

Can you post an HTTP status code?

It should be noted that if you use FogBugz On Demand, you must use https: // url (and not http-url).

0
source

All Articles