This error can occur due to having insufficient permissions on your SharePoint account.
The actual error received is:
βResponse': '{"error":{"code":"Authorization_RequestDenied","message":"Insufficient privileges to complete the operation.
Please check your SharePoint permissions or request your IT to do that for you.
