Skip to content

fix(aws): support SQS AwsJson1.0 requests#101

Open
EfeDurmaz16 wants to merge 1 commit into
vercel-labs:mainfrom
EfeDurmaz16:efe/sqs-aws-json-protocol
Open

fix(aws): support SQS AwsJson1.0 requests#101
EfeDurmaz16 wants to merge 1 commit into
vercel-labs:mainfrom
EfeDurmaz16:efe/sqs-aws-json-protocol

Conversation

@EfeDurmaz16
Copy link
Copy Markdown

Summary

Adds AwsJson1.0 request handling for the SQS emulator while preserving the existing form-urlencoded AWS Query protocol path. Current @aws-sdk/client-sqs clients send Content-Type: application/x-amz-json-1.0 and X-Amz-Target: AmazonSQS.<Action>, so the emulator now dispatches those requests and returns JSON protocol responses instead of XML errors.

Details

  • Detects SQS AwsJson1.0 requests by protocol headers.
  • Normalizes JSON request payloads into the existing SQS action handlers.
  • Returns JSON envelopes for CreateQueue, ListQueues, GetQueueUrl, GetQueueAttributes, SendMessage, ReceiveMessage, DeleteMessage, PurgeQueue, and DeleteQueue.
  • Keeps legacy Action= form requests and XML responses unchanged.
  • Updates AWS docs and the AWS skill to describe both SQS protocols.

Closes #95.

Validation

  • pnpm --filter @emulators/aws test
  • pnpm --filter @emulators/aws type-check
  • pnpm --filter @emulators/aws lint
  • pnpm --filter @emulators/aws build
  • pnpm exec prettier --check packages/@emulators/aws/src/routes/sqs.ts packages/@emulators/aws/src/__tests__/aws.test.ts

@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented May 15, 2026

@EfeDurmaz16 is attempting to deploy a commit to the Vercel Labs Team on Vercel.

A member of the Team first needs to authorize it.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug(aws-sqs): SQS emulator only accepts XML query protocol; AWS SDK v3 defaults to AwsJson1.0

1 participant