Cant connect to google cloud for gemini code assist

using IDX and I am trying to connect to google cloud to use Gemini Code Assist . It tells me to get Google Cloud verification code “Go to the following link in your browser:” … which I do … but where do I paste it ? terminal has “Enter authorization code:source /home/user/pythonsandbox1/myenv/bin/activate” but when i paste the key I get “invalid_grant”. where do i paste the key ? replace the whole "Enter … " line or after the “:” or create a file somewhere ?

1 Like

I’m experiencing similar issues. There’s no place for the code to be pasted without generating an “Invalid_grant”

I’m experiencing similar issue.
I’m working in IDX Project environment.
I created new workspace from flask template.
I want to start using Gemini Code Assist, so I installed Gemini Code Assist + Google Cloud Code Extension.
But when I want to Login to Google Cloud I get following message:

"
Go to the following link in your browser:
https://accounts.google.com/o/oauth2/v2/auth?access_type=offline&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fcloud-platform%20https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.email%20https%3A%2F%2Fwww.googleapis.com%2sauth%2Fuserinfo.profile&code_challenge_method=S256&code_challenge=8ryFlEveetcfgP1WNgfaAy_c-CgzD0YYU-BfFl886NE&state=4bb82f08-8d79-47fa-a430-a603669b604e&response_type=code&client_id=681235806385-oo8ft2oprdrnp9e3aqf6av3hmdib135j.apps.googleusercontent.com&redirect_uri=https%3A%2F%2Fsdk.cloud.google.com%2Fauthcode_cloudcode.html
Enter authorization code:source /home/user/booksapp/.venv/bin/activate
"
So I go to a browser with this link, authenticate to Google, copy generated verification code and paste it to terminal, but I get message: “invalid_grant”.
How to resolve this?