500 Internal Server Error With History

I am trying to make calls to the /history/airports/{id}/flights/arrivals & departures endpoints. I keep running into issues with a 500 error. I try to call back a couple of days worth, going day by day and putting a sleep in between calls and will get a 500 error. Sometimes I can get a couple of days and other times I will get 1 day or even none. Has anyone ran into this?