#Failing when configuring model

1 messages · Page 1 of 1 (latest)

modern fiber
#

When I authenticate with Antigravity it says TypeError: fetch failed after it says exchanging tokens.

simple gazelleBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution

thorn cedarBOT
#

TypeError: fetch failed at the “Exchanging tokens…” step is almost always “the machine running the auth flow can’t reach the OAuth token endpoint” (DNS/firewall/proxy/TLS/clock), not a bad code/token.

Can you paste (redacting anything sensitive) the outputs of:

openclaw --version
node -v
openclaw status --all

And then run the auth again while tailing logs:

Terminal A

openclaw logs --follow
#

Terminal B

openclaw models auth login --provider google-antigravity --set-default

The log usually includes the real cause (ENOTFOUND, ECONNRESET, CERT_*, ETIMEDOUT, etc.). That one line is the key.

Quick checks you can do on the same host:

curl -I https://oauth2.googleapis.com/
curl -I https://www.googleapis.com/

If those fail, it’s network/DNS/proxy/TLS from that host. Common fixes are: allow outbound HTTPS, configure proxy env for the service (if you run the Gateway as a daemon), ensure system time is correct, and on minimal Linux images ensure CA certs are installed.

Docs reference for the Antigravity provider plugin flow: