{"error":"invalid_token","error_description":"Access Token not found in cache"}

smeet2023
Contributor
Contributor

when we use the spring boot to request the paypal API, it works well after boot . But after 1 day no access as a weekend, it works wrong seems {"error":"invalid_token","error_description":"Access Token not found in cache"},and 401 not found. I check a lot messages about this in this community,but nobody resolve it . some versions here:

<java.version>1.8</java.version>
<paypal-rest.version>1.14.0</paypal-rest.version>
<paypal-checkout.version>1.0.4</paypal-checkout.version>
<paypal-out.version>1.1.0</paypal-out.version>
<paypal-core.version>1.7.2</paypal-core.version>

any one can really help?

Login to Me Too
3 REPLIES 3

vaishnavisb
Contributor
Contributor

Good day @smeet2023,

Thank you for reaching out to the PayPal community for assistance.

To help you resolve the issue you are facing, please follow the steps provided in the detailed guided link below:

https://developer.paypal.com/api/rest/authentication/

https://developer.paypal.com/api/rest/postman/

Please note that if the token you receive is not used within 24 hours, you will need to generate a new one.

If you are still experiencing the issue after following these steps, kindly create an MTS ticket via the following URL: https://www.paypal-support.com/s/?language=en_US. Please provide a detailed description of the issue you are facing and any error details you have encountered.

Thank you for your understanding.

Best regards,
Vaishnavi
PayPal MTS

If this post or any other was helpful, please enrich the community by giving kudos or accepting it as a solution.

Login to Me Too

smeet2023-1
Member
Member

this has solved now by change java code,just generate token everytime 

Login to Me Too

smeet2023-1
Member
Member

thank you very much, we change code to generate token everytime calling api and not find the same problem yet now.

Login to Me Too

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.