use the debugger to identify where code is breaking, but I can say according to you error message it would be error in your mongodb, could you tell me more about error and see which request method you are using.