My application validates user permissions based on the the access token and I am hitting - https://graph.facebook.com/me/permissions?access_token=XYZ URL with a valid token.
Things were working fine, however recently it has started breaking. HTTP GET on the mentioned URL returns 500 response with an error -
javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
There are no changes on the code front.
Moreover,
- The mentioned URL with a valid token works fine when I hit it in the browser. But in code it does not work.
- Also when I run the application on my laptop this all works fine. But it fails with the mentioned error on the production.
Not sure what's going on .. Can anyone please help me in this ?
Thanks in advance.