[Reviewer: Rob] Check rc of get_auth

Rob, can you review this change to return a 504 in the case where getting an authentication vector fails because the request to Homestead times out.

Fixes #603 
Why don't we just LOG_WARNING(error_msg) instead of having a slightly different log?