Wasn't returning json on the server