Remote reindex ElasticSearch API giving Null Pointer Exception

This is a similar discussion with the one in Connection timed out when remote cluster re-indexing - #9 by Prashant_Kamble

Please keep the discussion in a single place.
Thanks