Documentation Index
Fetch the complete documentation index at: https://mintlify.com/lbjlaq/Antigravity-Manager/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Antigravity Manager automatically handles many account errors, but some require manual intervention. This page covers the most common account-related errors and their solutions.Error Types
HTTP Status Codes
- 401 Unauthorized - Authentication failed, token expired or invalid
- 403 Forbidden - Account lacks required permissions or is blocked
- 429 Too Many Requests - Rate limit exceeded (auto-retries)
- 404 Not Found - Project or resource not found
- 503 Service Unavailable - Temporary service issues (auto-retries)
403 Forbidden Errors
Common Causes
- Account requires verification
- Geographic restrictions
- Service terms violation
- Temporary risk control (VALIDATION_REQUIRED)
- Project permissions issue
Automatic Handling
When a 403 error occurs, Antigravity Manager automatically:- Marks the account as forbidden (
is_forbidden: true) - Removes it from the active pool to prevent repeated failures
- Attempts to switch to the next available account
- Returns 503 instead of 403 to prevent client disconnection (for Claude Code)
From the source code (
proxy/handlers/claude.rs:1277-1298):Solutions
Check for verification links
Check for verification links
How to find:
- Go to the Accounts page
- Click on the disabled account
- Look for error details containing “To continue, verify your account at…”
- Click the verification link to complete Google’s verification process
- Google may ask you to verify your phone number
- You may need to complete a CAPTCHA
- Some accounts may require additional identity verification
Confirm Google One AI Plan eligibility
Confirm Google One AI Plan eligibility
Check your eligibility:
- Visit the FAQ page
- Ensure your account meets the requirements:
- Active Google One subscription (if required)
- Account in good standing
- Correct geographic region
- Verify you have access to Vertex AI
- Check project permissions in Google Cloud Console
Wait for automatic recovery
Wait for automatic recovery
Temporary blocks:Some 403 errors are temporary (e.g.,
VALIDATION_REQUIRED):- The system automatically blocks the account for 10 minutes
- After the block expires, the account is retried
- If the issue persists, manual intervention is required
- Google may temporarily restrict accounts that trigger automated abuse detection
- These typically resolve within 24-48 hours
- Reduce request frequency to avoid future blocks
Re-authorize the account
Re-authorize the account
Check account details for specific errors
Check account details for specific errors
View detailed error information:
- Go to Accounts page
- Click on the account card
- Look for:
disabled_reason: Why the account was disabledproxy_disabled_reason: Specific 403 reasonvalidation_blocked: Temporary block status- Detection timestamp
"invalid_grant"- Refresh token revoked or expired"VALIDATION_REQUIRED"- Google requires additional verification"Forbidden (403): quota fetch denied"- No permission to access quotas
401 Unauthorized Errors
Common Causes
- Expired access token (auto-refreshed)
- Revoked refresh token (requires re-authorization)
- Invalid OAuth credentials
- Token not yet active
Automatic Handling
When a 401 error occurs:- Automatic token refresh is attempted first
- If refresh fails, the account is marked as disabled
- Account rotation to the next available account
- Short retry delay (200ms) before switching
From the source code (
modules/account.rs:1502-1524):Solutions
Wait for automatic refresh
Wait for automatic refresh
When a 401 occurs:
- Antigravity automatically attempts to refresh the access token
- This happens in the background without user intervention
- Most 401 errors are resolved within seconds
- Settings → About → Debug Console
- Look for “forcing refresh” messages
- Check if refresh succeeds or fails
Handle invalid_grant errors
Handle invalid_grant errors
What is invalid_grant?This error means your refresh token has been:
- Revoked by Google (security reasons)
- Expired (typically after 6 months of inactivity)
- Invalidated due to password change
- Used in too many applications simultaneously
-
Remove the account:
- Go to Accounts page
- Delete the affected account
-
Re-authorize:
- Add the account again via OAuth
- Complete the authorization flow
- New refresh token will be issued
- Don’t share Google accounts across multiple Antigravity instances
- Don’t change your Google password frequently
- Keep accounts actively used
Verify OAuth setup
Verify OAuth setup
Check OAuth configuration:
-
Ensure authorization link is current:
- When adding an account, always use the newly generated link
- Don’t reuse old authorization links
-
Complete OAuth flow:
- After clicking “Authorize”, you should see a browser callback
- Wait for “Authorization successful” message
- Don’t close the window prematurely
-
Verify tokens are saved:
Token Expiry Issues
Understanding Token Lifecycle
- Access Token: Valid for ~1 hour, automatically refreshed
- Refresh Token: Valid for months, used to get new access tokens
- Session Token: Temporary, for sticky sessions
Automatic Refresh Mechanism
Antigravity Manager automatically refreshes access tokens before they expire using the refresh token.
- Background refresh: Every 5 minutes (configurable)
- On-demand refresh: When 401 is encountered
- Pre-emptive refresh: 5 minutes before expiry
Manual Token Management
Force token refresh
Force token refresh
Refresh a single account:
- Go to Accounts page
- Click on the account card
- Click the refresh icon
- Wait for quota to update
- Go to Accounts page
- Click “Refresh All” button
- Monitor progress in the notification
Check token expiry times
Check token expiry times
View token details:In the UI:
- Click on an account card
- Look for “Last synced” timestamp
- This indicates when tokens were last refreshed
Handle expired refresh tokens
Handle expired refresh tokens
Symptoms:
- Account keeps getting disabled
invalid_granterror in logs- Cannot refresh access token
- Delete the account
- Clear any cached credentials:
- Add the account fresh via OAuth
404 Project Not Found
Common Causes
- Invalid project ID
- Project deleted or moved
- Insufficient permissions to access project
- Project not enabled for Vertex AI
Solutions
Verify project exists
Verify project exists
Check in Google Cloud Console:
- Visit Google Cloud Console
- Check the project selector
- Search for the project ID mentioned in the error
- If not found, the project may have been deleted
- Click “Create Project” in Google Cloud Console
- Enable required APIs:
- Vertex AI API
- Gemini API
- Wait for API enablement to complete
Fix empty or invalid project ID
Fix empty or invalid project ID
From the source code (
modules/account.rs:1580-1592):Antigravity automatically handles empty project IDs by:- Detecting when
project_idis empty - Falling back to a stable default:
bamboo-precept-lgxtn - Re-fetching quota with the fallback project
- Go to Accounts page
- Delete account with invalid project
- Re-add the account
- System will auto-detect or use stable fallback
Enable Vertex AI API
Enable Vertex AI API
Enable required APIs:Or via Console:
- Go to API Library
- Search for “Vertex AI API”
- Click “Enable”
- Repeat for “Gemini API”
Account Management Best Practices
Preventing Issues
-
Don’t share accounts across instances:
- Using the same Google account in multiple Antigravity instances can cause token conflicts
- Each instance should have dedicated accounts
-
Monitor account health:
- Regularly check the Dashboard for quota status
- Set up background auto-refresh (Settings → Background Tasks)
- Enable quota protection to prevent overuse
-
Respond to errors promptly:
- Check disabled accounts daily
- Re-authorize accounts when
invalid_grantoccurs - Complete verification prompts immediately
-
Use proxy pools for sensitive accounts:
- Assign specific proxies to accounts
- Rotate IPs to avoid rate limits
- See Settings → Proxy Pool
Monitoring Account Status
Account states:- ✅ Active: Working normally
- ⏸️ Disabled: Manually disabled by user
- 🚫 Forbidden: Blocked due to 403 error
- ⚠️ Validation Blocked: Temporary block (10 minutes)
- 🔄 Syncing: Refreshing quota
Debugging Account Errors
For advanced debugging techniques, see the Debugging Guide.Quick Debugging Steps
-
Check logs for error details:
-
Enable debug console:
- Settings → About → Debug Console
- Monitor real-time request/response logs
-
Verify account file integrity:
-
Test OAuth flow manually:
- Add a test account
- Watch the browser callback
- Check for any errors in browser console
Related Resources
- Common Issues - General troubleshooting
- Debugging Guide - Advanced debugging techniques
- API Documentation - Understanding API errors