CORE-2243 fixed create task api call

change the logger to error @PurnimaGS