Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nothing returned for large data #57

Open
Zonalds opened this issue Nov 9, 2022 · 0 comments
Open

Nothing returned for large data #57

Zonalds opened this issue Nov 9, 2022 · 0 comments

Comments

@Zonalds
Copy link

Zonalds commented Nov 9, 2022

Hi,

I noticed everything works fine accept when I send any data that uses S3 then I will get nothing page.

On handle message, I did:

handleMessage: async ({ payload }) => { console.log({ payload }) },

Payload would return undefined. This only happens when I send any data over 256KB and requires S3. When I check SQS messages and poll, I can see something like:

{"S3Payload":{"Id":"3eaff789-c556-4cbd-8381-acde38e2508a","Bucket":"sqs-event-payload","Key":"3eaff789-c556-4cbd-8381-acde38e2508a.json","Location":"https://event-payload.s3.amazonaws.com/3eaff789-c556-4cbd-8381-acde38e2508a.json"}}

I have getPayloadFromS3 set to true but it doesn't seem like the message is downloaded. Using transformMessageBody returns the raw message as saved on SQS. That is an S3Payload object containing Id, Bucket, Key and Location.

But on calling handleMessage, I get nothing. Any idea what I am doing wrong?

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

No branches or pull requests

1 participant