Route function errors to lookup table

Recipe Tools

What it does

When a function call is made, this automation monitors the response for HTTP error codes. If an error is detected, it logs the details to a lookup table for the team to review.

Who it's for

Engineering teams who need to track function failures and debug integration issues.

How teams use this

Track authentication failures in functions

Capture 401 and 403 errors when function calls fail due to missing or invalid credentials. The team reviews the lookup table to identify permission issues.

Monitor server errors and patterns

Log 50x errors when the function encounters server-side problems. This helps the team spot patterns in failures and prioritize fixes.

Notify teams on not-found errors

Extend this automation to include a Slack notification when a 404 error is logged. Set up a condition to only notify on specific resource types.

Include email in error logs

Add the email field to each error log entry so the team knows which user or system triggered the failed function call. This requires adding email to the lookup table record.

How it works

  1. Receive the function call. A function call is made in real time, and this automation receives the request to process.
  2. Monitor for HTTP errors. Check the function response for HTTP error codes including 401, 402, 403, 404, 407, 410, or 50x status codes and capture the error message.
  3. Log the error details. When an HTTP error is detected, add an entry to the Error logs lookup table with the error message and code for the team to review later.