您要发送两次回复.加return
return
//don't forget to return the error, otherwise you send response twice if (error) return response.json({message: 'Could not delete transfer b/c:' + error}); response.json({message: 'Transfer successfully deleted'});