Skip to main content
Participant
Oct 9, 2023 2:53 AM UTC
Question

PDF Extract API failing with Private Key not found

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
This topic is closed to new replies. Start a new post to keep the conversation going.

2 replies

Participant
Feb 22, 2024 6:33 PM UTC

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.

Translate
Raymond Camden
Community Manager
Community Manager
Feb 22, 2024 6:35 PM UTC

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'))

 

Translate