This question already has an answer here:
I've been through a quite long application process, and in the end I've been rejected. I've been sent an e-mail where they explicitly recognized the "strength" of my profile, but they decided to not proceed further.
Because during the application I did a couple of coding tests and several phone interviews, and they also led me to understand that I was a good match for the position I was applying for, I would like to know what specifically was my weakness.
Is it okay if I ask? Or do you think it's inappropriate?