- Test connectivity to Modulus Labs servers
- Verify API availability and response time
- Confirm your network can reach the API endpoints
If you receive
Pong!, the API is available and your network connectivity is working!Use Cases
Connection Test
Verify your application can reach Modulus Labs servers
Health Monitoring
Include in your application’s health check endpoints
CI/CD Testing
Use in automated tests to verify API availability
Uptime Monitoring
Monitor API uptime and response times without authentication overhead
Monitoring Example
Include the Ping endpoint in your monitoring strategy:Best Practices
Implement Timeouts
Implement Timeouts
Always set appropriate timeouts when making ping requests to avoid hanging your application.
Log Failures
Log Failures
Log health check failures for debugging and monitoring.
Don't Overuse
Don't Overuse
The ping endpoint is for health checks, not request validation. Don’t call it before every API request.Bad: Call ping before every QR creationGood: Call ping during startup and periodically for monitoring (every 1-5 minutes)
Troubleshooting
Network Timeout
Network Timeout
Symptom: Request times out without responsePossible Causes:
- Firewall blocking outbound HTTPS requests
- Network connectivity issues
- DNS resolution problems
- Check firewall rules allow HTTPS (port 443)
- Test DNS resolution:
nslookup qrph.sbx.moduluslabs.io - Try from a different network
- Verify no proxy is blocking the request
SSL Certificate Error
SSL Certificate Error
Symptom: SSL/TLS certificate validation failsPossible Causes:
- System time incorrect
- Missing CA certificates
- Corporate proxy intercepting SSL
- Verify system time is correct
- Update SSL certificates on your system
- Configure proxy settings if applicable
Unexpected Response
Unexpected Response
Symptom: Response is not
Pong!Possible Causes:- Wrong endpoint URL
- Proxy or CDN modifying response
- API maintenance or issues
- Verify URL is exactly
https://qrph.sbx.moduluslabs.io/ping - Check for any middleware modifying responses
- Contact Modulus Labs support if issue persists