Stellar PHP SDK API Documentation

SEP08InvalidPostActionResponse extends Exception

Exception thrown when the action URL returns an invalid or malformed response.

This exception is thrown by RegulatedAssetsService::postAction() when:

  • The response lacks a required 'result' field
  • The result field contains an unknown/unsupported value
  • Required fields for a given result are missing (e.g., 'next_url' for follow_next_url)
  • HTTP status code is not 200
  • Response body is not valid JSON

The exception message contains details about what was invalid or missing. The exception code contains the HTTP status code if available.

Handling Recommendations:

  • Log the exception details for debugging action server issues
  • Fall back to opening the action_url in a browser (GET method)
  • Display an error message to the user about completing the action manually
  • Consider retry logic for transient errors
Tags
see
RegulatedAssetsService::postAction()

Table of Contents


        
On this page
  • Table Of Contents

Search results