Confluence SoapAPI Throws "WebException: The request failed with HTTP status 502: Proxy Error." exception while calling GetAttachmentData() method.
I was trying to get attachments of a wikipage. It was working fine for some attachments but after some moment it gave particualr exception.
WebException: The request failed with HTTP status 502: Proxy Error.
at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
at ConfluenceAPIWebsServiceVersion2.ConfluenceSoapServiceService.getAttachmentData(String in0, Int64 in1, String in2, Int32 in3)
at APIService.ConfluenceService.GetAttachmentData(Int64 id, String attachmentName, Int32 doc
It was the first exception in the loop.
After then for every remaining attachment call it throws
WebException: The request failed with HTTP status 503: Service Temporarily Unavailable.
at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
at Tzunami.Common.EcmConfluenceExporter.ConfluenceAPIWebsServiceVersion2.ConfluenceSoapServiceService.getAttachmentData(String in0, Int64 in1, String in2, Int32 in3)
Please help me on what is the cause and resolution for this issue