Skip to content

Troubleshooting Guide

Fresh

Common Issues

Authentication Issues

ProblemLikely CauseSolution
401 on every requestToken expiredRefresh token via POST /user/refresh_token
Empty token in signin responseWrong email/passwordDouble-check credentials
Token stops working mid-session30-minute expiry hitImplement proactive refresh at 25 min
429 Too Many RequestsRate limit exceededUse automation token; add exponential backoff

Profile Issues

ProblemLikely CauseSolution
Profile won't startProfile is lockedUse POST /profile/unlock first
400 on profile createInvalid parametersCheck browser_type and os_type values
Profile starts but no connectionFirewall/network issueVerify network allows WebSocket connections
Profile data not savingProfile not stopped cleanlyAlways call POST /profile/stop before exiting

2FA Issues

ProblemLikely CauseSolution
Cannot disable user 2FAWorkspace 2FA still activeDisable workspace 2FA first via POST /workspace/update_2fa
Cannot revoke 2FA deviceOnly one device remainsAdd a new device before revoking the current one
403 on workspace 2FA toggleNot a workspace adminMust have admin role to manage workspace 2FA

Diagnostic Decision Tree

Best Practices to Avoid Issues

Token Management

  • Refresh tokens at 25 minutes (5 min before expiry)
  • Use automation tokens for scripts and bots
  • Implement automatic re-auth on 401 responses

Error Handling

  • Always check the status.error_code field, not just HTTP status
  • Implement exponential backoff for 429 and 5xx errors
  • Log full error responses for debugging

2FA Management

  • Remember the order: workspace first when enabling, user first when disabling
  • Never try to revoke the last 2FA device
  • Store device_ids from setup for future management