Scheme 'https' not registered when using InfraHttpClient

When trying to invoke an endpoint using https via the java cobalt http client jar, I encounter an IllegalStateException: Scheme 'https' not registered exception. When I make a non https call, everything works fine. Is there something I might have misconfigured that would cause this? Has anyone else come across this problem? Also, does anyone know if there is some good documentation around the InfraHttpClient?

Best Answer

  • As noted in the comments above, the Infrastructure teams will need to enhance the InfraHttpClient library to register the https connection scheme with the apache http client library in order for HTTPS calls to work correctly. In the mean time, we have created this configuration manually by using the Apach Http Client jar/classes directly.

Answers

  • This is very likely a configuration issue with the Apache Http client that the InfraHttpClient code wraps. I am going to do some playing around with the platform http client code to see if Registering the Https scheme fixes the issue.
  • The Infrastructure team is now working on a fix for this in the 4.x version of the InfraHttpClient jar. In the mean time I manually registered 'https' with the apache http client while I wait for the fix.