I fixed this by hiding the feature's area and length attributes in the rest service.
I did not realize at the time I opened this thread that those attributes were specific to the SDE database holding the data. In this case, I am using SQL Server spatial types, thus the STArea() and STLength() attribute names which I could not change, even by setting an alias.