My iPad Pro 12.9 smart keyboard also failed in this way.
Fortunately the Apple store replaced it for free (Vancouver BC Canada) saying there was a quality program about these keyboards. Apparently it is not the connector, but the flex cable that connects the iPad that fails.