WebException can be thrown when calling RestRequest.ToHttpWebRequest(), because (rather obviously) that method is where it tries to write to the request output stream - which might not be available.
As a band-aid, I moved the try/catch block to include that call.
WebException
can be thrown when callingRestRequest.ToHttpWebRequest()
, because (rather obviously) that method is where it tries to write to the request output stream - which might not be available.As a band-aid, I moved the try/catch block to include that call.