Copy link to clipboard
Copied
ServiceApiException occurs when I use RemoveProtectionOperation
StackTrace
於 Adobe.DocumentServices.PDFTools.core.http.HttpClient.ExecuteRequest[T](HttpBaseRequest baseRequest)
於 Adobe.DocumentServices.PDFTools.core.http.HttpClient.<>c__DisplayClass11_0`1.<Execute>b__0()
於 Polly.Policy`1.<>c__DisplayClass11_0.<Execute>b__0(Context ctx, CancellationToken ct)
於 Polly.Retry.RetryEngine.Implementation[TResult](Func`3 action, Context context, CancellationToken cancellationToken, ExceptionPredicates shouldRetryExceptionPredicates, ResultPredicates`1 shouldRetryResultPredicates, Action`4 onRetry, Int32 permittedRetryCount, IEnumerable`1 sleepDurationsEnumerable, Func`4 sleepDurationProvider)
於 Polly.Retry.RetryPolicy`1.Implementation(Func`3 action, Context context, CancellationToken cancellationToken)
於 Polly.Policy`1.Execute(Func`3 action, Context context, CancellationToken cancellationToken)
於 Polly.Policy`1.Execute(Func`1 action)
於 Adobe.DocumentServices.PDFTools.core.http.HttpClient.Execute[T](HttpBaseRequest baseRequest)
於 Adobe.DocumentServices.PDFTools.core.api.CPFApi.CPFCreateOpsApi[T](InternalExecutionContext context, CPFContentAnalyzerRequests cpfContentAnalyzerRequests, List`1 sourceFileRefList, String operation)
於 Adobe.DocumentServices.PDFTools.core.service.RemoveProtectionService.RemoveProtection(InternalExecutionContext context, FileRefImpl sourceFileRef, String password, String operation)
於 Adobe.DocumentServices.PDFTools.pdfops.RemoveProtectionOperation.Execute(ExecutionContext context)
於 PDFHelper.Form1.button1_Click(Object sender, EventArgs e) 在 D:\FormTest\FormPDF\PDFHelper\Form1.cs:行 131 中
Copy link to clipboard
Copied
Hi @Wang16B7 , Thanks for reaching out, As per the error message that you are recieving "Error response received for the request: The basic connection is closed: An error occurred during transmission" , your network connection seems to be slow or intermittent, I will suggest you to retry with the same file and let us know if the problem persists.
Copy link to clipboard
Copied
Hi Team,
We aslo facing the same issue. While we are converting file randomly we are getting below error. Kindly help us in order to solve this.
Adobe.DocumentServices.PDFTools.core.http.HttpClient.CheckContentReponseStatusCode(ContentAnalyzerResponse contentAnalyzerResponse)
at Adobe.DocumentServices.PDFTools.core.http.HttpClient.ExecuteRequest[T](HttpBaseRequest baseRequest)
at Polly.Policy`1.<>c__DisplayClass11_0.<Execute>b__0(Context ctx, CancellationToken ct)
at Polly.Retry.RetryEngine.Implementation[TResult](Func`3 action, Context context, CancellationToken cancellationToken, ExceptionPredicates shouldRetryExceptionPredicates, ResultPredicates`1 shouldRetryResultPredicates, Action`4 onRetry, Int32 permittedRetryCount, IEnumerable`1 sleepDurationsEnumerable, Func`4 sleepDurationProvider)
at Polly.Retry.RetryPolicy`1.Implementation(Func`3 action, Context context, CancellationToken cancellationToken)
at Polly.Policy`1.Execute(Func`3 action, Context context, CancellationToken cancellationToken)
at Adobe.DocumentServices.PDFTools.core.api.CPFApi.CPFStatusApi[T](InternalExecutionContext context, String location)
at Adobe.DocumentServices.PDFTools.core.api.FileDownloadApi.DownloadFile[T](InternalExecutionContext context, String location, String destinationPath)
at Adobe.DocumentServices.PDFTools.pdfops.CreatePDFOperation.Execute(ExecutionContext context)