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

PDF Extract API failing with Private Key not found

New Here ,
Oct 08, 2023 Oct 08, 2023

Copy link to clipboard

Copied

Hello! 

I am a newbie here. I am trying to run the example as shown in the link below:

Python | Quickstarts | PDF Extract API | Adobe PDF Services

 

I went through all the steps mentioned above but when trying to execute the code, it fails with the below error message. I looked at the credentials.json file that was downloaded and there is no mention of private key there. Should I be setting a default value for this private key? If not, where would I find the private key?

Appreciate any help you can on this.

 

Exception has occurred: ValueError
  •  
private_key must not be blank
File "C:\Programst\extract.py", line 27, in <module> .build() ^^^^^^^ ValueError: private_key must not be blank
TOPICS
PDF Extract API

Views

159

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 ,
Feb 22, 2024 Feb 22, 2024

Copy link to clipboard

Copied

Same problem here. I believe there is supposed to be a private.key file in the samples but I can't find it anywhere in the downloaded zip file.

Votes

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
Adobe Employee ,
Feb 22, 2024 Feb 22, 2024

Copy link to clipboard

Copied

LATEST

Private keys are no longer used. You can see that just the client id and secret are:

 

credentials = Credentials.service_principal_credentials_builder()
.with_client_id(os.getenv('PDF_SERVICES_CLIENT_ID'))
.with_client_secret(os.getenv('PDF_SERVICES_CLIENT_SECRET'))

 

Votes

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