Finally finished the project I have been chipping away at for months.
Three hours debugging. The problem was a missing comma.
Coffee shop wifi is down so I am being unusually productive.