• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers

"Exception in signing jwt token" error with extract_txt_from_pdf_with_in_memory_auth_credential.py

New Here ,
Aug 03, 2021 Aug 03, 2021

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

 

TOPICS
PDF Extract API

Views

160

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 03, 2021 Aug 03, 2021

Copy link to clipboard

Copied

LATEST

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources