Common error categories
1. Timeout errors
Error:execution timeout
Cause: The tracer execution exceeded the configured timeout.
Solutions:
- Start with shorter timeouts (30s) for testing
- Increase the timeout gradually, based on transaction complexity
- Use built-in tracers when possible, because they are faster
- Optimize JavaScript tracer code for performance
2. Memory limit errors
Error:out of memory or memory limit exceeded
Cause: The tracer collected too much data or used memory inefficiently.
Solutions:
3. JavaScript tracer errors
Error:SyntaxError or ReferenceError in a JavaScript tracer
Common issues:
4. Network and connection issues
Error:connection refused or network timeout
Solutions:
5. Transaction not found
Error:transaction not found
Debugging steps:
Performance optimization
Tracer performance tips
- Limit data collection:
- Use efficient data structures:
- Selective tracing:
Node configuration for better performance
Debugging workflows
1. Failed transaction analysis
2. Gas optimization workflow
Error code reference
Common HTTP error codes
Tracer-specific errors
Best practices summary
✅ Do’s
- Start simple: Begin with built-in tracers before you write custom JavaScript.
- Set timeouts: Always configure appropriate timeouts.
- Limit data: Collect only the information that you need.
- Test incrementally: Test tracers on simple transactions first.
- Monitor resources: Watch memory and CPU usage.
- Cache results: Store expensive trace results when possible.
❌ Don’ts
- Do not collect everything: Avoid tracing all operations unnecessarily.
- Do not ignore errors: Always handle tracer errors gracefully.
- Do not use complex logic: Keep tracer step functions simple.
- Do not forget timeouts: Never run tracers without timeout limits.
- Do not trace in production: Avoid heavy tracing on production nodes.
Getting help
If you have an issue that this guide does not cover:- Check node logs: Look for error messages in your Sei node logs.
- Verify the configuration: Make sure that tracing is enabled on your node.
- Test connectivity: Confirm that the RPC endpoints are accessible.
- Simplify tracers: Try built-in tracers first.
- Community support: Ask in the #dev-support channel of the Sei Discord.
When you report an issue, include your tracer code, the transaction hash, and any error messages that you receive. This helps the community help you.