“Application not accessible” Error

If you experience issues where TestSprite can’t access your running application, please follow the solution below:
1

Diagnostic checks

Check if application is running
curl http://localhost:3000
curl http://localhost:8000
Check which ports are in use
lsof -i :3000
lsof -i :8000
Check firewall settings (Linux)
sudo ufw status
For macOS: Go to System Preferences > Security & Privacy > Firewall to check firewall settings.
2

Ensure application is running

npm start
npm run dev
yarn dev
3

Check port configuration

Find actual port
netstat -tulpn | grep LISTEN
Update bootstrap call
testsprite_bootstrap_tests ({
  localPort: 3000,  // Use actual port
  type: "frontend",
  projectPath: "/path/to/project",
  testScope: "codebase"
})
4

Check for port conflicts

Kill conflicting processes
lsof -ti:3000 | xargs kill -9
Use different port
PORT=3001 npm start