Trim Reblogs: Fails to trim with `APIError (400)`
Platform
various
Browser
various
Addon version
various
Details
Sometimes, the Trim! confirmation button in the Trim Reblogs interface will yield an error message with APIError [400.0] at https://www.tumblr.com/api/v2/blog/t:[some characters]/ posts/[long number]() and will fail.
I have not been able to reproduce this, but I've seen occasional user reports of it for a long time now (months to years). Please comment below with as many details as you have if this happens to you!
Summarizing details given to me when I've asked for them: this often occurs on every thread a user tries to trim for a meaningful period of time, whether in drafts or from the dashboard, sometimes in multiple browsers. Users have been trimming the first trail item, generally on posts with three visible trail items including their addition, generally in threads that have previously been trimmed multiple times. The threads I've been linked to are all NPF-native and aren't blazed, non-rebloggable, mature-labelled, or otherwise unusual.
Threads often have images, as is typical with a roleplay thread. Post content doesn't seem that likely to be the problem to me, though, since Quick Tags uses essentially the same edit-a-post code that Trim Reblogs does and likely has many times the number of uses but I have never seen a reported 400 error from its use. Threads often have many tags and have unusual characters in the tags, but copying those tags to a test post does not trigger the error, and again, Quick Tags should fail on them if that was the problem.
Notably reported in Firefox for Android and with a non-English Tumblr UI language (that user did not have another device and we didn't change the Tumblr language before the problem mysteriously vanished).