Flow Execution Failure With a "Server error processing request" Error

Overview

This article explains the reason for the following error message. This error may occur during an authentication flow when a Flow makes an external API call and the server replies with an HTTP 5xx error response (E.g., HTTP 500, HTTP 504) while the “Continue flow execution after an error” checkbox is not checked on that particular Flow.

{
  "type": "flows_execution_failed",
  "description": "Runtime error",
  "details": {
    "state": "xyz",
    "flow_id": "af_XYZ",
    "execution_id": "afe_XYZ",
    "error": {
      "code": "ERR_ACTION_EXECUTION_ERROR",
      "message": "Server error processing request"
    }
  },
  // other lines redacted
}

Applies To

  • Flows
  • Forms

Cause

The flow may be making an API request, which fails with an HTTP 5xx error response (E.g HTTP 500, HTTP 504)

Solution

  1. The error can be avoided if the 5xx error responses from the requested API server are prevented.
  2. Alternatively, on the related Flow, enable the “Continue flow execution after an error” checkbox.