The large text breaks the filter

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)

image

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.

1 Like

Hey, we were making the rounds and looked into this issue. It looks like its no longer occurring. We are assuming this was a temporary issue with the service. Thanks for reporting!

1 Like