Empty HTTP request exception fixed