When calling the applyEdits function on a FeatureService with a large number of features, the uninformative error message may occur.
An error occured.
The problem is caused by a limit of bytes (10MB) for the HTTP POST request.
As of version 10.9.1, this value can be set in the server properties. The upper limit can be increased via maxHttpPostSizeInBytes.