6

I am getting the following error when pushing changes to my cloud source repo..

remote: INVALID_ARGUMENT: Request contains an invalid argument.
remote: [type.googleapis.com/google.rpc.LocalizedMessage]
remote: locale: "en-US"
remote: message: "Invalid authentication credentials. Please generate a new identifier: https://source.developers.google.com/new-password"      
remote:
remote: [type.googleapis.com/google.rpc.RequestInfo]
remote: request_id: "xxxxx"
fatal: unable to access 'https://source.developers.google.com/p/xxx/repository/': The requested URL returned error: 400

I then go ahead to generate new password and store in .gitcookies file but I still get the same error.

1 Answers1

1

I solved this by generating a new .gitcookies identifier using the Generate new identifier link and executing the command (sample is below) given after authentication with my account with the command line.

git config --global http.cookiefile "%USERPROFILE%\.gitcookies"
powershell -noprofile -nologo -command Write-Output ...

Initially because I saw powershell and all I used powershell and even git bash but they all did not work.

I found that for windows users, just copy the command for the windows users section and paste in windows command line and not powershell or git bash.

  • Where do you find the windows users section? I wanna see what's going on there too coz your answer doesn't make sense and it's not working for me. – SeriousLee Nov 26 '21 at 13:33
  • After creating a repo on gcp source repos, you should be directed to the page that has info on how to clone your repo. Read the section with that info and you should see a section that shows info for windows. – Lance Armah-Abraham Jan 28 '22 at 21:48