>From what I have experience, the Account Server does not have error handling in place.
If github return anything other then the grant code, that is something like a http url reference to documentation, when your authcode is invalid, Account Server will still accept it, but when it trys to parse the return value to get userId, it fails. But, because it does not check and handle this exception, it will still issue a session id, with a null userId. That too will gives your code 46. Make sure you revoke authcode and try again, may just works and return code 1. From: [email protected] [mailto:iotivity-dev-bounces at lists.iotivity.org] On Behalf Of Punna EshwarChandra Sent: Thursday, May 19, 2016 1:36 PM To: iotivity-dev at lists.iotivity.org Subject: [dev] Client sample client is returning 46 and account server returning an error. Hi everyone, I am trying to run the sample client for cloud, according to the wiki when I execute ./cloud_device 127.0.0.1:5683 and provide input github and authcode. It is returning me 46 as return code where as it should return 1 and when I see the log of Account server then I was able to view the following error . Error: 10:32:34:544 [D] authCode: 2433804e4bfd662e13b0, authServer: github org.apache.oltu.oauth2.common.exception.OAuthSystemException: 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 I tried even by changing the authcode. Why am i getting this error and what could be the reason behind it? Thanks, Eshwar Chandra Punna <http://ext.samsung.net/mailcheck/SeenTimeChecker?do=c4532843a6c0966f974f69d c22e9ba4fdd70e3bc4da22a03996754936eefe2ed1e3bcc20668f5bc9525b67db19b927c7f57 58e6fd014db2149e5ff3dfdc8681d76f80bf81d31c863cf878f9a26ce15a0> -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20160520/bed166d8/attachment.html> -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.gif Type: image/gif Size: 13168 bytes Desc: not available URL: <http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20160520/bed166d8/attachment.gif>
