log error message when API requests fail
Merge pull request #5714 from minrk/warn-api-errors

log error message when API requests fail