Getting above displayed error when trying to open a task module send over hero message card
To open the task module from the card the action type should be submit action. Here is the sample to open Task module from card.