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

Space inside } missing.