git push gives "VS30063: you are not authroized to access https://dev.azure.com" but the push works, how do I fix this?

Lord Wolfenstein 1 Reputation point
2022-01-16T21:36:42.117+00:00

I clone my repo from Azure devops inside Visual Studio 2022. Then when I push I get this
165416-image.png
But when I check my repo at https://dev.azure.com/<my organisation>/<my repo> the push still went through. I should not get an error when it works. How can I fix this?
This started to happen after I switched to VS2022 form VS2019.

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,573 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,520 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Ken Tucker 5,846 Reputation points
    2022-01-16T22:29:33.767+00:00

    Two suggestions. Make sure you have the latest version of VS 2022 installed. (There have been a few updates). I would also try and sign into your visual studio account again in VS 2022

    Also VS 2022 supports have projects connected to more than one git repo. Is it possible there are 2 repos in your solution?


  2. Godfrey Lehoko 1 Reputation point
    2022-01-17T12:20:33.597+00:00

    This usually happens due to an expired Path token, have you tried regenerating a new token, I believe that should solve your problem.