Skip to main content
Participant
January 24, 2025
Question

Exception in fetching access token

  • January 24, 2025
  • 1 reply
  • 162 views

Hi, I'm getting an error when trying to run the Python SDK. I tried this with the free tier some months ago and it worked fine, not sure what happened.

Here are my steps:

1. Generate credentials and SDK code

2. Set credentials variables

3. Tried to run the "ExtractTextInfoFromPDF" file. 

I encounter this error:

raise SdkException("Exception in fetching access token", sys.exc_info())
adobe.pdfservices.operation.exception.exceptions.SdkException: description =Exception in fetching access token, requestTrackingId=(<class 'adobe.pdfservices.operation.exception.exceptions.SdkException'>, SdkException('Request could not be completed. Possible cause attached!', (<class 'requests.exceptions.SSLError'>, SSLError(MaxRetryError("HTTPSConnectionPool(host='pdf-services-ue1.adobe.io', port=443): Max retries exceeded with url: /token (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate in certificate chain (_ssl.c:1006)')))")), <traceback object at 0x10453c100>)), <traceback object at 0x10453f600>)

 I've tried fetching the access token with a curl command, and that works fine. Any ideas?

Thanks!

1 reply

Participant
January 24, 2025

I'm getting this error in PyCharm, but it runs fine in VS Code. So this is a config issue, anyone know where I might look?