Complete Troubleshooting Guide
This guide covers all common issues, error messages, and troubleshooting steps for the hookVM platform and CLI tool.
CLI Authentication Issues
Error: Authentication Required
Error Message:
❌ Authentication failed
Please run "hookvm login" to authenticate with hookVM
Causes:
- No authentication token stored
- Authentication token expired
- CLI not configured properly
Solutions:
-
Re-authenticate:
hookvm login -
Check authentication status:
hookvm login status -
Clear and re-authenticate if token is corrupted:
hookvm logout
hookvm login
Error: Invalid or Expired Token
Error Message:
Token: Invalid or expired
To re-authenticate, run: hookvm login
Causes:
- Authentication token has expired
- Token was revoked
- Configuration file corruption
Solutions:
-
Re-authenticate:
hookvm login -
Clear configuration if issues persist:
# Remove configuration file
rm ~/.hookvm/config.json
hookvm login
Browser Authentication Issues
Error Message:
🌐 Opening browser for authentication...
⏳ Waiting for authentication in browser...
❌ Authentication timeout
Causes:
- Browser not opening automatically
- Authentication not completed within timeout (5 minutes)
- Popup blocked by browser
- Network connectivity issues
Solutions:
-
Manual browser navigation:
- Copy the authentication URL from CLI output
- Open in browser manually
- Complete authentication
-
Check browser settings:
- Ensure popups are allowed for hookvm.com
- Try different browser
- Disable browser extensions temporarily
-
Network troubleshooting:
- Check internet connectivity
- Try from different network
- Check corporate firewall settings
CLI Connection Issues
Error: Invalid Endpoint URL
Error Messages:
✗ Endpoint URL must use HTTP or HTTPS protocol
✗ Invalid endpoint URL format
✗ Invalid webhook endpoint URL format. Expected format: http://domain.com/endpoint-id
Causes:
- Wrong URL protocol (using ws:// or other protocols)
- Malformed URL structure
- Invalid endpoint ID format
Solutions:
-
Use correct URL format:
# Correct formats
hookvm listen https://hookvm.com/hooks/abc123-def456-ghi789-012345
hookvm listen http://localhost:8080/hooks/abc123-def456-ghi789-012345
# Incorrect formats
hookvm listen ws://hookvm.com/hooks/endpoint # Wrong protocol
hookvm listen https://hookvm.com/endpoint # Missing /hooks/ path -
Verify endpoint ID format:
- Must be UUID format (8-4-4-4-12 hex characters)
- Example:
abc123-def456-ghi789-012345
Error: WebSocket Connection Failed
Error Messages:
WebSocket error: Connection timeout
WebSocket disconnected: Connection refused
The URL's scheme must be either 'http:' or 'https:'. 'ws:' is not allowed
Causes:
- Server not reachable
- Incorrect WebSocket URL configuration
- Firewall blocking WebSocket connections
- Server maintenance or downtime
Solutions:
-
Check server connectivity:
# Test basic connectivity
ping hookvm.com
curl https://hookvm.com -
Verify endpoint exists:
- Check endpoint in web interface
- Ensure endpoint is active and not deleted
-
Network troubleshooting:
- Try from different network
- Check corporate firewall WebSocket policies
- Test with different endpoint
-
Clear CLI configuration:
rm ~/.hookvm/config.json
hookvm login
Error: Target URL Issues
Error Messages:
✗ Invalid target URL format
✗ Target URL must use HTTP or HTTPS protocol
Causes:
- Malformed target URL
- Wrong protocol specification
- URL syntax errors
Solutions:
-
Use correct target URL format:
# Correct formats
hookvm listen <endpoint> --target http://localhost:3000
hookvm listen <endpoint> --target https://api.example.com
# Incorrect formats
hookvm listen <endpoint> --target localhost:3000 # Missing protocol
hookvm listen <endpoint> --target ftp://localhost # Wrong protocol -
Verify local server is running:
# Check if local server is accessible
curl http://localhost:3000
Web Interface Issues
Login and Authentication
Issue: Cannot log in to web interface
Symptoms:
- Login form returns errors
- Authentication loops back to login
- Google Sign-in not working
Solutions:
-
Check credentials:
- Verify email and password
- Use password reset if needed
- Try Google Sign-in as alternative
-
Browser troubleshooting:
- Clear browser cookies and cache
- Disable browser extensions
- Try incognito/private browsing mode
- Try different browser
-
Network issues:
- Check internet connectivity
- Try from different network
- Check if corporate firewall blocks access
Dashboard Loading Issues
Issue: Dashboard not loading or blank page
Symptoms:
- White/blank page after login
- Partial page loading
- JavaScript errors in console
Solutions:
-
Browser troubleshooting:
- Hard refresh (Ctrl+F5 or Cmd+Shift+R)
- Clear browser cache
- Enable JavaScript
- Check browser console for errors
-
Try different browser:
- Test with Chrome, Firefox, Safari, or Edge
- Update browser to latest version
- Disable ad blockers temporarily
-
Network troubleshooting:
- Check internet stability
- Try different network connection
- Contact IT support for corporate networks
Data Not Loading
Issue: Webhook events or data not appearing
Symptoms:
- Empty event lists
- Data not refreshing
- Outdated information displayed
Solutions:
-
Refresh and reload:
- Manual page refresh
- Check for auto-refresh settings
- Verify time range filters
-
Check permissions:
- Verify user role and permissions
- Confirm workspace access
- Contact workspace administrator
-
Verify webhook activity:
- Check if webhooks are actually being sent
- Test with CLI monitoring
- Review external service configurations
Webhook Delivery Issues
Outbound Webhook Failures
Issue: Outbound webhooks not being delivered
Symptoms:
- Events showing as failed in dashboard
- Target servers not receiving webhooks
- High failure rates in analytics
Common Error Responses:
Connection Refused (ECONNREFUSED):
Error: connect ECONNREFUSED 127.0.0.1:3000
- Target server is down or not listening
- Wrong port or host configuration
- Firewall blocking connections
Timeout Errors:
Error: Request timeout
- Target server taking too long to respond
- Network latency issues
- Server overload
HTTP Error Codes:
404 Not Found - Endpoint doesn't exist
401 Unauthorized - Authentication required
403 Forbidden - Access denied
500 Internal Server Error - Target server error
Solutions:
-
Verify target endpoint:
# Test endpoint manually
curl -X POST https://your-endpoint.com/webhook \
-H "Content-Type: application/json" \
-d '{"test": "data"}' -
Check target server:
- Ensure server is running and accessible
- Verify endpoint URL and path
- Check server logs for errors
-
Review webhook configuration:
- Verify authentication headers
- Check event type filters
- Review retry policies
-
Network troubleshooting:
- Test from different networks
- Check DNS resolution
- Verify SSL/TLS certificates
Incoming Webhook Issues
Issue: Incoming webhooks not appearing
Symptoms:
- External services report successful delivery
- No events showing in hookVM dashboard
- CLI not receiving events
Solutions:
-
Verify endpoint configuration:
- Check endpoint URL in external service
- Ensure endpoint is active
- Verify authentication settings
-
Test webhook delivery:
# Test with curl
curl -X POST https://hookvm.com/hooks/your-endpoint-id \
-H "Content-Type: application/json" \
-d '{"test": "webhook"}' -
Check external service settings:
- Verify webhook URL is correct
- Check event type selections
- Review delivery settings
-
Monitor with CLI:
# Use CLI to debug
hookvm listen https://hookvm.com/hooks/your-endpoint-id
Performance Issues
Slow Dashboard Loading
Issue: Dashboard or pages loading slowly
Solutions:
-
Browser optimization:
- Close unnecessary browser tabs
- Clear browser cache
- Disable heavy extensions
-
Network optimization:
- Check internet speed
- Try wired connection instead of WiFi
- Test from different location
-
System resources:
- Close other applications
- Check available memory
- Restart browser
High Memory Usage (CLI)
Issue: CLI consuming excessive memory
Symptoms:
- System becoming slow when CLI is running
- Out of memory errors
- CLI crashing unexpectedly
Solutions:
-
Use console mode for high volume:
# Disable UI for better performance
hookvm listen <endpoint> --disable-ui -
Restart CLI periodically:
- CLI automatically limits stored events to 1000
- Restart if memory usage seems high
- Use process monitoring tools
-
System optimization:
- Close other applications
- Increase system memory if possible
- Monitor system resources
Error Code Reference
HTTP Status Codes
2xx Success Codes:
200 OK- Request successful201 Created- Resource created successfully204 No Content- Request successful, no response body
4xx Client Error Codes:
400 Bad Request- Invalid request format401 Unauthorized- Authentication required403 Forbidden- Access denied404 Not Found- Resource not found429 Too Many Requests- Rate limit exceeded
5xx Server Error Codes:
500 Internal Server Error- Server error502 Bad Gateway- Upstream server error503 Service Unavailable- Server temporarily unavailable504 Gateway Timeout- Upstream server timeout
CLI Exit Codes
0- Success1- General error (invalid arguments, connection failure, etc.)
Recovery Procedures
Complete CLI Reset
When to use: Multiple CLI issues, corrupted configuration
# 1. Clear configuration
rm ~/.hookvm/config.json
# 2. Reinstall CLI
npm uninstall -g @hookvm/cli
npm install -g @hookvm/cli
# 3. Re-authenticate
hookvm login
# 4. Verify installation
hookvm --version
hookvm login status
Web Interface Reset
When to use: Persistent web interface issues
-
Clear browser data:
- Clear all cookies for hookvm.com
- Clear localStorage and sessionStorage
- Clear browser cache
-
Reset browser:
- Try incognito/private mode
- Test with different browser
- Update browser to latest version
-
Network reset:
- Try different network
- Flush DNS cache
- Reset network adapter
Getting Additional Help
Diagnostic Information
When contacting support, provide:
-
CLI Information:
hookvm --version
node --version
npm --version -
System Information:
- Operating system and version
- Browser type and version (for web issues)
- Network environment (corporate/home/mobile)
-
Error Details:
- Complete error messages
- Steps to reproduce issue
- Screenshots of error conditions
Debug Logging
Enable verbose logging when needed:
-
CLI Debug Mode:
# Set environment variable for debug output
DEBUG=* hookvm listen <endpoint> -
Browser Developer Tools:
- Open browser console (F12)
- Check for JavaScript errors
- Monitor network requests
Support Resources
- Documentation: Review all sections for additional guidance
- Community: Check for known issues and solutions
- Support Ticket: Provide diagnostic information and detailed error descriptions
This comprehensive troubleshooting guide covers the most common issues encountered when using hookVM. Follow the solutions systematically and escalate to support when needed with appropriate diagnostic information.