Fix [#286] - add basic_auth to request and catch failures

Redundant `begin` block detected.