Have a look at your CloudCode task logs, you will most likely find more information about your error there as I expect the error is coming from your CC task code.
You can find CC task logs, or officially referred to as CloudCode Invocation History, by opening the CMDPanel (double tap shift key) and typing in “CloudCode Invocation History”.