Try-catch authorisation error