Adding those VM options : -ea -Dtestng.dtd.http=true solved this problem.
But if you want to solve it for each run either for any class or method, you need to add the same in TestNG template, please refer to this screenshot.
Intelij TestNg Template SS