Refusing solids out of nowhere

Harley

My 7 month old was doing great trying all sorts of food for a month, now the past 3 days he refuses to open his mouth even for his favorite foods, won't drink from his cup, and only wants to nurse. At a loss for what to do, maybe someone else has gone through this and can give me some advice before I reach out to his doctor.