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

Line is too long. [124/120]<br>Redundant `self` detected.<br>Space missing after comma.<br>Space inside { missing.<br>Space inside } missing.<br>Prefer single-quoted strings when you don't need string interpolation or special symbols.