-
Notifications
You must be signed in to change notification settings - Fork 20
Open
Description
There is an issue with OKHttpClient and the TLS implementation running on.a IBM Java JRE.
The same root cause has been documented on Watson-developer-cloud (Issue #603).
If the starter kit without modifications (except setting App-ID and Secret) is pushed to Bluemix the Authenticate as User process is failing with the following error message:
java.net.UnknownServiceException: Unable to find acceptable protocols
The root cause for this exception is well documented in above referenced issue #603.
The following modification of com.ibm.watsonwork.WatsonWorkConfigurationresolves this issue:
@Bean
public OkHttpClient okHttpClient() {
Builder client = new OkHttpClient.Builder();
ConnectionSpec spec = new ConnectionSpec.Builder(ConnectionSpec.MODERN_TLS).allEnabledCipherSuites().build();
client.connectionSpecs(Collections.singletonList(spec));
return client.build();
}
Please refer to the following patch file which contains above described fix.
Metadata
Metadata
Assignees
Labels
No labels