How to implement error handling with custom routes on Make
Implement error handling in Make by adding Error Handler routes to your modules, configuring custom error responses, and using filters to direct failed executions to specific recovery paths. This ensures your scenarios handle failures gracefully and maintain data integrity.
Prerequisites
- Basic Make scenario creation experience
- Understanding of HTTP modules and webhooks
- Familiarity with JSON data structures
- Knowledge of error handling concepts
Step-by-Step Instructions
Add an Error Handler Route
Configure Error Handler Module
{{error.message}}, {{error.type}}, and {{error.data}} from the failed module.Implement Error Classification
{{error.type}} = "ConnectionError" or {{error.message}} contains "timeout" to handle specific error scenarios differently.Create Recovery Actions
Set Up Error Notifications
Scenario: {{scenario.name}}, Error: {{error.message}}, Time: {{now}} in your notification content.Configure Ignore Directive
Test Error Scenarios
Common Issues & Troubleshooting
Error handler not triggering when module fails
Verify the error handler route is properly connected to the failing module with a dashed line. Check that the module is actually producing errors and not just empty results, which don't trigger error handlers.
Error variables showing as empty in handler modules
Use the correct error variable syntax like {{error.message}} instead of generic error references. Map the error data properly in your error handler modules and test with actual error scenarios.
Scenario still showing as failed despite error handlers
Add a Flow Control > Ignore module at the end of your error handler routes after successful recovery. This tells Make to treat the handled error as resolved.
Error handlers creating infinite loops with retries
Implement retry counters using Data Store modules to track attempt numbers and add filters to limit retry attempts. Use {{attempts}} < 3 type conditions to prevent endless retries.