Carpet stinks after cleaning

Anyone else had this problem before?? What do I do to get the smell out? I’ve tried carpet powder and speaying diluted vinegar over carpet like google said, it didn’t work!! Cleaned carpet like over 2 weeks ago and it smells really bad 🤢