probot / smee.io

☁️📦 Webhook payload delivery service
https://smee.io
MIT License
348 stars 86 forks source link

big requests lead to 413 PayloadTooLargeError #98

Open gerrnot opened 2 years ago

gerrnot commented 2 years ago

Hi,

A colleague pushed a change with many changed files/folders (87) to GitHub.

As the list of files is part of the webhook event, this had the effect that a quite large webhook event (request body) was delivered to smee.io.

The webhook type was a regular json and had a size of 156484 bytes.

I think it would be good for stability to also support larger pushes and increase the size to maybe 1MB.

Workaround: Push a smaller commit afterwards, then only the changes of the newer commit are part of the event.

Regards, Gernot

wolfy1339 commented 3 months ago

GitHub can send payloads of up to 25MB 1

Smee is not meant to be used as a production service, it's to help facilitate during development.

Now, 25MB is definitely out of the question, 1MB payloads sound reasonable