I'm sorry to hear this. Yes, take him to a vet, this doesn't sound normal. In the meantime, try offering canned pumpkin, not the pie filler, just says pumpkin. Also make sure he's getting enough fluids, they dehydrate so easily.
Please update his condition and vet appointment.