Dedicated Server crashes when receiving API chat with missing parameters

CrimsonDecoded shared this bug 27 days ago
Submitted

When a POST request is sent to the /v1/vrageclient/session/chat API route that doesn't contain all of the necessary parameters (of which there is no documentation), the server crashes entirely rather than handling the empty message.

Exception occurred: System.InvalidOperationException: Error serializing ChatMsg.Text, member contains null, but it's not allowed, consider adding attribute [Serialize(MyObjectFlags.Nullable)] ---> VRage.Serialization.MySerializeException: Exception of type 'VRage.Serialization.MySerializeException' was thrown.
Full crash stack attached.

While this is a rather obscure crash that is not likely with standard tools, it is not impossible to occur.

Leave a Comment
 
Attach a file