Skip to main content
Participant
October 9, 2023
Question

PDF Extract API failing with Private Key not found

  • October 9, 2023
  • 1 reply
  • 1187 views

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 has been closed for replies.

1 reply

Participant
February 22, 2024

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.

Raymond Camden
Community Manager
Community Manager
February 22, 2024

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