I had a priest do that once. During lent, it was in a situation where our hosts served meat during the first several courses of our meal, and it would have been isulting and rude not to eat what was served.
Well after a long lecture, saying we should have requested meals without meat, the priest said “I can’t absolve you, you will need to go to the Bishop.” When I went to the Bishop’s office to make an appointment, the person actually became angry because I wasn’t forgiven and told me, that was too harsh. He said any reasonable priest should forgive you, and you should try a different priest." I actually went back to the same priest, crying, and when I told him what the Bishops office said, he forgave me.