Copy link to clipboard
Copied
I get the following exception when using the sample python source for PDF extraction (extract_txt_from_pdf_with_in_memory_auth_credential.py):
location = CPFApi.cpf_create_ops_api(context, cpf_content_analyzer_req, [file_ref],
File "/home/thomas_onesourceregulatory_com/anaconda3/envs/osr-py3-8/lib/python3.8/site-packages/adobe/pdfservices/operation/internal/api/cpf_api.py", line 63, in cpf_create_ops_api
response = http_client.process_request(http_request=http_request,
File "/home/thomas_onesourceregulatory_com/anaconda3/envs/osr-py3-8/lib/python3.8/site-packages/adobe/pdfservices/operation/internal/http/http_client.py", line 35, in process_request
access_token = http_request.authenticator.session_token().access_token
File "/home/thomas_onesourceregulatory_com/anaconda3/envs/osr-py3-8/lib/python3.8/site-packages/adobe/pdfservices/operation/internal/auth/jwt_authenticator.py", line 45, in session_token
return self.refresh_token()
File "/home/thomas_onesourceregulatory_com/anaconda3/envs/osr-py3-8/lib/python3.8/site-packages/adobe/pdfservices/operation/internal/auth/jwt_authenticator.py", line 51, in refresh_token
jwt_token = self.prepare_jwt()
File "/home/thomas_onesourceregulatory_com/anaconda3/envs/osr-py3-8/lib/python3.8/site-packages/adobe/pdfservices/operation/internal/auth/jwt_authenticator.py", line 111, in prepare_jwt
raise SdkException("Exception in signing jwt token", sys.exc_info())
adobe.pdfservices.operation.exception.exceptions.SdkException: description =Exception in signing jwt token, requestTrackingId=(<class 'ValueError'>, ValueError('Could not deserialize key data. The data may be in an incorrect format or it may be encrypted with an unsupported algorithm.'), <traceback object at 0x7fba18989400>)
Any clues?,
Tom
Copy link to clipboard
Copied
Here's a pointer to the main source file: https://github.com/adobe/pdfservices-python-sdk-samples/blob/main/src/extractpdf/extract_txt_from_pd...