bluesky-social / atproto

Social networking technology created by Bluesky
Other
7.29k stars 515 forks source link

Ozone/Labeler Update Fails with "Request entity too large" when adding large number of labels/localizations #2803

Open astrabun opened 2 months ago

astrabun commented 2 months ago

Describe the bug

When using a labeler (Ozone), I am unable to add new label definitions or localized descriptions of existing labels once the payload reaches a certain size. Error: request entity too large

To Reproduce

Steps to reproduce the behavior:

  1. Log into Ozone
  2. Navigate to "Configure"
  3. Use this JSON as the service record: https://gist.github.com/astrabun/402681bc62cdfe85af418cfc002255ec <-- Error: request entity too large

Expected behavior

The labels should be updated with the new translations and new label values.

Details

This occurs both using the Ozone UI as well as from TypeScript with await agent.withProxy("atproto_labeler", ozone_service_user_did).api.com.atproto.repo.putRecord({...});

Additional context

I recognize my use case has a LOT of label definitions (500+), but I expect this same problem is possible with a labeler with fewer overall labels but more translations for each (e.g., 100 labels with 5+ different locale objects each would probably experience the same as I'm seeing, with 500+ labels with 1-2 locale objects).