I took 3 hours debugging it and came to this article, tried removing the connector > publishing the canvas app > adding it back > publishing again > started working.
Thank you @Greg & @SeaDude.