This sounds like the situation I had with my dragon a couple of months ago. I took him to the vet and had a fecal done. To my surprise absolutely no parasites. My vet figured it may have been a bacterial thing. He prescribed me flagyl suspended in a beef type of mixture that also provided nutrition. After a week of this he eventually came around and is eating 30 or so crickets again on a daily basis.

