think i had this experience...
hi,
recently had this experience myself, where my female (7months) decided eating was not in her best interest. She was drinking however, and taking only hoppers, perhaps 10 a week (December to Jan). Shes now thankfully eating properly again which is good, but perhaps i can reveal some light on this....
Much research suggests that in the late winter/ early spring, many reptiles eat a significant amount less than usual (see publications such as animal behaviour). This is logical as wild populations in cooler periods would decrease and as such it may be a natural process where they don't eat as much during this time.
But, if not, perhaps increasing the temperature of the enclosure by maybe a couple of degrees if it is a little cool, as the cham may be trying to conserve heat more if this is the case.
This experience has been shown in not just chameleons, but also many other reptiles from similar latitudes and geographical regions, so hope this sheds some light on the situation for people if eggs are not the reason!