RASA Custom Connector keep giving custom response

This is because you did not pass self keyword for def name() method it is supposed to be def name(self) after changing to this it worked for me