Why do my churros end up undercooked?

They're hard and practically almost burnt on the outside, but then undercooked on the inside. I've followed the recipe precisely as they said it. Is it the frying process?
4 answers 4