Wait, adjust, or see a vet

Wait if it is a healthy adult that skipped a day or two of insects but still eats greens and looks well.
Adjust if the basking surface is below 105°F, there is no T5 HO UVB, or something changed recently: a new enclosure, a move, another pet nearby, a lot of handling.
See a reptile vet if it refuses food for more than 3–4 days (sooner for a juvenile) and also loses weight, looks thin at the tail or limbs, has sunken eyes, is lethargic, or has abnormal droppings.

The usual causes