LexRuntimeService / Client / exceptions / DependencyFailedException

DependencyFailedException#

class LexRuntimeService.Client.exceptions.DependencyFailedException#

One of the dependencies, such as AWS Lambda or Amazon Polly, threw an exception. For example,

  • If Amazon Lex does not have sufficient permissions to call a Lambda function.

  • If a Lambda function takes longer than 30 seconds to execute.

  • If a fulfillment Lambda function returns a Delegate dialog action without removing any slot values.

Example

try:
  ...
except client.exceptions.DependencyFailedException as e:
  print(e.response)
response#

The parsed error response. All exceptions have a top level Error key that provides normalized access to common exception atrributes. All other keys are specific to this service or exception class.

Syntax

{
    'Message': 'string',
    'Error': {
        'Code': 'string',
        'Message': 'string'
    }
}

Structure

  • (dict) –

    One of the dependencies, such as AWS Lambda or Amazon Polly, threw an exception. For example,

    • If Amazon Lex does not have sufficient permissions to call a Lambda function.

    • If a Lambda function takes longer than 30 seconds to execute.

    • If a fulfillment Lambda function returns a Delegate dialog action without removing any slot values.

    • Message (string) –

    • Error (dict) – Normalized access to common exception attributes.

      • Code (string) – An identifier specifying the exception type.

      • Message (string) – A descriptive message explaining why the exception occured.