LoopFour

Workflow Debugging

Debug workflow execution issues

Workflow Debugging

Viewing Run Details

Get detailed information about a workflow run:

curl https://api.justpaid.io/api/v1/runs/{runId} \
  -H "x-api-key: YOUR_API_KEY"

The response includes:

  • Overall run status
  • Each step's status, input, and output
  • Error messages for failed steps
  • Timing information

Common Step Failures

Template Variable Errors

Error: Cannot read property 'x' of undefined

Cause: Referencing a field that doesn't exist.

Solution: Check the input data structure and use optional chaining:

{{input.data?.object?.id}}

Action Errors

Error: Integration error: Rate limited

Cause: The external API rate limited the request.

Solution: Add retry configuration to the step:

{
  "retries": 3,
  "retryDelay": 5000,
  "retryBackoff": "exponential"
}

Condition Errors

Error: Invalid condition expression

Cause: Malformed condition syntax.

Solution: Verify operator and value types match.

Testing Workflows

Test with Mock Input

curl -X POST https://api.justpaid.io/api/v1/workflows/{id}/run \
  -H "x-api-key: YOUR_API_KEY" \
  -d '{
    "input": {
      "test": true,
      "data": { "example": "value" }
    }
  }'

Dry Run Mode

Execute without side effects:

curl -X POST https://api.justpaid.io/api/v1/workflows/{id}/run?dryRun=true \
  -H "x-api-key: YOUR_API_KEY"

Logging

Enable verbose logging for debugging:

{
  "settings": {
    "logging": "verbose"
  }
}

On this page