Authentication error: unauthorised access to GITLab API resource

Maybe this post has useful info? Authentication failed when syncing via the command prompt