smartConnect error
-
My software has been working for more than 2 months now.
But today I got this error and not able to connect with server.
I WAS NOT ABLE TO TRADE TODAYsun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: validity check failed
exception createPostRequest
null
Exception Errors - Parameter specified as non-null is null: method okhttp3.OkHttpClient.newCall, parameter request -
@Ashok Thanks Ashok, I will try doing that
-
@rishi Or better hardcode the IP. The IP resolution eats away another .5 - 1 sec of API execution.
-
@vvbchandrasekhar Oh, great.
-
@rishi i can see it is updated on https://github.com/angelbroking-github/smartapi-java
I pulled in the latest dist smart-api.jar and able to connect to the broker this afternoon
-
@rishi Would you be updating this change in Github?
-
@rishi As mentioned by garry I changed the url to
https://checkip.amazonaws.com/
and it works. -
@admin I am still facing the same error.
-
HI @rishi This issue has been resolved kindly update us if you face any other issue.
-
@admin When can we expect the problem to be resolved. This is the second day without any trade
-
HI @vvbchandrasekhar Our team is working on it on priority once fixed we will update here.
-
@kkt237 @garry07396 thanks a lot. will try in the interim.
@admin please provide an ETA for the new jar.
-
@vvbchandrasekhar It worked for me. Look at @garry07396 comment. You can use that url too
-
@garry07396 Yes. There are many as such. Good you found one from aws.
-
@G25453 i changed it to
https://checkip.amazonaws.com/
-
@kkt237 Hardcoding the public ip works.
String clientPublicIP = "10.21.13.45";
A temporary workaround for the moment -
@kkt237 did it work? I also checked out the code now of smart-connect-api from their github. will try to make changes to it if you think it helped you.
-
@vvbchandrasekhar It will not work as the ssl issue is thrown/checked with in the class file.
Did you import smartapi-java as a jar or as a source?
I tried importing the source and corrected the client code where it fetches the public ip.
-
@kkt237 got it. i tried -Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true
but still they are not working. did you try something similar? -
@vvbchandrasekhar https://bot.whatismyipaddress.com/ has expired cert and that's why its failing.