0

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,

  1. The mentioned URL with a valid token works fine when I hit it in the browser. But in code it does not work.
  2. 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.

George Kagan
  • 5,913
  • 8
  • 46
  • 50
  • Welcome to StackOverflow. Please note, that this is not a free code-writing service, but we are eager to help fellow programmers (and aspirants) writing their own code. Please read the help topics on [How to ask a good question](http://stackoverflow.com/help/how-to-ask). Afterwards, please update your question with the code you have written thus far in order to complete the task(s) you wish to achieve. – Quintin Balsdon Nov 18 '16 at 08:45
  • 1
    did you already try [this](http://stackoverflow.com/questions/21076179/pkix-path-building-failed-and-unable-to-find-valid-certification-path-to-requ) ? – user6904265 Nov 18 '16 at 08:45

0 Answers0