Skip to content

[docs]: (bug) UnrecoverableInvocationError in error-handling.md does not exist in TypeScript SDK #173

@TrickSumo

Description

@TrickSumo

URL/Location

https://github.com/aws/aws-durable-execution-docs/blob/main/aws-lambda-durable-functions-power/steering/error-handling.md#unrecoverable-errors

Describe What's Incorrect or Lacking

error-handling.md shows this example:

import { UnrecoverableInvocationError } from '@aws/durable-execution-sdk-js';

throw new UnrecoverableInvocationError('User not found');

This causes a TypeScript compile error:

Module '@aws/durable-execution-sdk-js' has no exported member 'UnrecoverableInvocationError'

Root Cause

UnrecoverableInvocationError is defined internally in the SDK, but:

  • It is abstract, hence cannot be instantiated
  • It is not exported from index.ts and is not part of the public API

Suggested Improvement

Until the SDK exports a public equivalent, the TypeScript example should either:

  • Be removed and replaced with a note that TypeScript currently has no direct equivalent. Raised a feature request in the SDK.
  • Show the workaround using retryStrategy: () => ({ shouldRetry: false })

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions