AdobeDocs / AdobeDocs/pdfservices-api-documentation

Exception while trying to run the python script

Open
#357 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
20
Forks
229
PR merge metrics
No merged PRs in 30d

Description

Issue in /src/pages/overview/pdf-accessibility-auto-tag-api/quickstarts.md

INFO:adobe.pdfservices.operation.pdfops.autotag_pdf_operation:All validations successfully done. Beginning AutotagPDF operation execution
Traceback (most recent call last):
File "C:\Users\...i\Downloads\PDFServicesSDK-Python (Extract, Auto-tag)Samples\adobe-dc-pdf-services-sdk-python-samples\src\autotagpdf\autotag_pdf.py", line 45, in
autotag_output_files: AutotagPDFOutputFiles = autotag_pdf_operation.execute(execution_context)
File "C:\Python39\lib\site-packages\adobe\pdfservices\operation\pdfops\autotag_pdf_operation.py", line 177, in execute
raise ex
File "C:\Python39\lib\site-packages\adobe\pdfservices\operation\pdfops\autotag_pdf_operation.py", line 153, in execute
download_uri_list = AutotagPDFService.autotag_pdf(execution_context, self._source_file_ref, self.get_options(),
File "C:\Python39\lib\site-packages\adobe\pdfservices\operation\internal\service\autotag_pdf_service.py", line 51, in autotag_pdf
raise e
File "C:\Python39\lib\site-packages\adobe\pdfservices\operation\internal\service\autotag_pdf_service.py", line 35, in autotag_pdf
location = PlatformApi.submit_job(context, autotag_pdf_request, ServiceConstants.AUTOTAG_OPERATION_ENDPOINT,
File "C:\Python39\lib\site-packages\adobe\pdfservices\operation\internal\api\platform_api.py", line 51, in submit_job
response = http_client.process_request(http_request=http_request,
File "C:\Python39\lib\site-packages\adobe\pdfservices\operation\internal\http\http_client.py", line 46, in process_request
raise OperationException(message=response.text,
adobe.pdfservices.operation.internal.exceptions.OperationException

Contributor guide

Open the contributing guide

Research direction

Start with src/pages/overview/pdf-accessibility-auto-tag-api/quickstarts.md and reproduce the failure by running src/autotagpdf/autotag_pdf.py. Inspect the complete OperationException response from the AutotagPDF operation, since the report includes only the exception type. Done means the quickstart script completes the AutotagPDF execution without this exception.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.