Skip to content

Improve Error Handling for Large Payloads #561

Open
@samirrayani

Description

Describe the issue
When publishing a payload via SNS (and probably SQS too) that is too large, the response should provide a better warning/message. Instead a TypeError is thrown because there is no Error message in the response

Steps to reproduce
Steps to reproduce the behavior:

  1. Create a new lambda and publish a large payload to it (arc.events.publish(...))
  2. See error that says TypeError: @aws-lite/client: SNS.Publish: Cannot read properties of null (reading 'Error')

Expected behavior
A clear message indicating why the message was unable to be processed (in our case, too big!)

Screenshots
CleanShot 2024-06-05 at 15 02 45
CleanShot 2024-06-05 at 15 03 08

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions