It could be to do with temperature as you were told, or it could be stress, or even illness/parasites. Double check your husbandry, give the snake a good 2 weeks and then try and feed it again. If the snake regurges a second time, then a trip to the vet may be in order to check for parasites.