I discovered an error which most likely should not be.
If you use the FilterStringForBroadcast
function and upload the large text of ~1800 characters to it, so the function will return HTTP status 500.
It seems that this error appears if the text does not look meaningful and consists of random characters (or without spaces)
Test code:
local success, message = pcall(function()
local str = ("asdasd"):rep(300)
print(`str length: {#str}`)
game:GetService("Chat"):FilterStringForBroadcast(str, game.Players:WaitForChild("YourRobloxName", 20))
end)
print("result: ", success, message)
Expected behavior
The text should be fully tagged or if the text appropriate then should be passed the filter correctly.