You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I cannot find any examples of how to use the API with SSL, and the code contains multiple bugs.
The first problem is that you are calling a deprecated method of OKHttp. If you are using JDK 8u252 or later, this will cause an exception; see this issue: square/okhttp#6019
I tried upgrading the version of OKHttp, and that didn't work. I was able to get past this bug by downgrading my JDK. But then I ran into a bug, in which ApiClient sets the HostnameVerifier to null, if verifyingSsl is true. This is in ApiClient.applySslSettings.
Then I tried setting verifyingSsl to false (not something recommended for production servers), and got yet another null pointer exception.
The text was updated successfully, but these errors were encountered:
I cannot find any examples of how to use the API with SSL, and the code contains multiple bugs.
The first problem is that you are calling a deprecated method of OKHttp. If you are using JDK 8u252 or later, this will cause an exception; see this issue: square/okhttp#6019
I tried upgrading the version of OKHttp, and that didn't work. I was able to get past this bug by downgrading my JDK. But then I ran into a bug, in which ApiClient sets the HostnameVerifier to null, if verifyingSsl is true. This is in ApiClient.applySslSettings.
Then I tried setting verifyingSsl to false (not something recommended for production servers), and got yet another null pointer exception.
The text was updated successfully, but these errors were encountered: