The problem surprisingly resolved after I removed ContentType header from RestClient. Hope this helps anyone who will struggle with this.