Now sends empty json on error, but logs the message to the server console