Troubleshooting
A reference for the most common errors and how to resolve them.
Connection Issues
tunnel: connection refused
Your local service is not running on the port you specified.
# Check what's listening on the port
lsof -i :3000 # macOS / Linux
netstat -ano | findstr :3000 # WindowsStart your local service, then re-run the binboi command.
tunnel: unable to connect to server
The CLI cannot reach the Binboi server.
- Verify the server address:
binboi config show - Check outbound connectivity:
curl -I https://binboi.example.com - Ensure port 443 is not blocked by a corporate firewall or VPN
tunnel reconnecting... (repeated)
The CLI lost the server connection and is retrying with exponential backoff. This is normal after a network blip. If it persists:
- Check server health:
binboi server status - Check your machine's DNS:
nslookup binboi.example.com - Try a different region:
binboi http 3000 --region us-west
Authentication Issues
auth: token expired
Your auth token has expired. Re-authenticate:
binboi login --server https://binboi.example.comauth: invalid token
The token in ~/.binboi/config.json is malformed or was revoked. Log out and back in:
binboi logout
binboi login --server https://binboi.example.comauth: unauthorized
Your account does not have permission to create tunnels on this server. Contact your Binboi server admin.
Subdomain Issues
subdomain already in use
Another active session is holding the subdomain you requested.
# Use a different subdomain
binboi http 3000 --subdomain myapp-dev
# Or release the existing session first
binboi tunnels list
binboi tunnels stop <tunnel-id>Custom domain not resolving
- Verify your CNAME record:
dig CNAME dev.mycompany.com - DNS propagation can take up to 10 minutes
- Check that the Binboi server owns a certificate for your domain:
binboi tls status --hostname dev.mycompany.com
HTTPS / Certificate Issues
ERR_CERT_AUTHORITY_INVALID
The Binboi server is using a self-signed certificate. Either:
- Add the CA certificate to your trust store
- Or use
--insecureflag with curl for testing only — never in production
Certificate stuck provisioning
Force a renewal:
binboi tls renew --hostname your.domain.comRequest Issues
Requests return 502 Bad Gateway
Your local service is running but returned an error. Check your application logs. Common causes:
- Application threw an unhandled exception
- Local service is not returning a valid HTTP response
- Port is correct but the service is not yet ready (race condition on startup)
Requests return 504 Gateway Timeout
Your local service took too long to respond. Default timeout is 30 seconds.
# Extend the upstream timeout
binboi http 3000 --upstream-timeout 120sLarge request bodies are truncated
The default request body size limit is 10 MB. Increase it:
binboi http 3000 --max-body-size 100mbInspector Issues
Port 4040 already in use
binboi http 3000 --inspect-port 4041Diagnostic Commands
# Check config
binboi config show
# Test server connectivity
binboi ping
# Ping all regions
binboi ping --all-regions
# Show active tunnels
binboi tunnels list
# View CLI version
binboi --version
# Enable verbose debug output
binboi http 3000 --log-level debugGetting Help
- Check the Binboi GitHub issues for known bugs
- Run
binboi diagnoseto generate a diagnostic bundle to share with support - See the Logs page for guidance on capturing detailed output
