Added logging for when the site can't connect to the api.