When I click “Sign in with Google,” the browser authenticates successfully and redirects properly, but when it hands the authorization code back to the IDE, it immediately throws this error:
“There was an unexpected issue setting up your account. Failed to exchange authorization code for token.”
My Setup:
OS: Windows 10 (Build 10.0.26200.7840)
App: Google Antigravity
What I’ve already tried (none of this worked):
Forcing a Windows system clock sync to fix potential OAuth timestamp mismatches.
Completely deleting the %appdata%\Antigravity folder to clear the local token vault/cache.
Triggering the deep link manually via CLI (Antigravity.exe --open-url "antigravity://auth").
Running the auth flow through an Incognito browser window to rule out extension interference.
Has anyone found a functional workaround for this, or is the auth server just dropping requests right now? I’ll attach my screenshots below.
Facing the same issue
Tried all of the above options too
It was working fine until yesterday.
Today i tried installing the update it wasn’t happening so i had to delete the data ,refreshed the cache and cookies and tried downloading with the same account along with the authentication with the same account its throwing this screen:
This error indicates that while your browser can reach Google, but the Antigravity itself is being blocked from making the final connection to Google’s servers. This is usually caused by a Proxy or Antivirus intercepting the network traffic.
Please try running the application from a terminal with proxy variables cleared: set HTTP_PROXY= set HTTPS_PROXY= start Antigravity.exe
If that fails, check if your Antivirus has ‘HTTPS Scanning’ enabled and whitelist the Antigravity executable.
using `set HTTP_PROXY=` (clear proxy) in the command line might cause the software to fail to connect to Google servers during the “get token” step due to the lack of a proxy.
Find your VPN port: Check your VPN software’s (such as Clash, v2rayN) settings for the HTTP proxy port (usually 7890 or 10809).
I tried this method, and it works for temporarily routing the software’s traffic through the proxy. However, since I don’t want to launch it via CMD every time, it’s much more convenient to just set the proxy software to ‘TUN Mode’.
I meet this problem today. And I found it solved by changing my network from WIFI to 5G network. It works out immediately, perhaps there is something wrong with my WIFI setting.
Hope it would be helpful for someone in need.