Log stack trace when there is an exception getting data from the api