Skip to content

AppSync Events API WebSocket fails with angle brackets in payload #400

@shivennn

Description

@shivennn

WebSocket connections fail when publishing events containing angle brackets (<>)
with "BadRequestException: signature mismatch", while HTTP POST works fine.

Steps to Reproduce:

  1. Create AppSync Events API with IAM auth
  2. Publish via HTTP POST: {"channel":"/test","events":["{\"event_1\":\"<test>\"}"]} ✅ Works
  3. Publish via WebSocket: same payload ❌ Fails with signature error

Expected: Both HTTP and WebSocket should handle angle brackets consistently
Actual: WebSocket requires Base64 encoding as workaround

Workaround: Encode angle brackets as Base64 before WebSocket publish

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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