Handle SSL exceptions differently

Issue #117 new
Desrever Nu created an issue

When an exchange update their SSL certificate nubot crashes and stop working. It would be nice to handle that exception and send an email and an emergency notification.

Example of exception happening:

fatal: httpresponse:
Unexpected token END OF FILE at position 0.
Dec 03, 2014 12:20:10 PM com.nubits.nubot.tasks.StrategySecondaryPegTask initOrd
ers
fatal: ApiError [getCode 15563 getDescription Error while parsing the response]
Dec 03, 2014 12:20:10 PM com.nubits.nubot.trading.wrappers.PoloniexWrapper$Polon
iexService executeQuery
fatal: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorExcep
tion: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuild
erException: unable to find valid certification path to requested target
Dec 03, 2014 12:20:10 PM com.nubits.nubot.trading.wrappers.PoloniexWrapper getBa
lanceImpl

Comments (5)

  1. Desrever Nu reporter
    • removed milestone

    Removing milestone: 0.3.2 - Configurable Distribution (automated comment)

  2. Log in to comment