You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Rust+ proto decode errors due to required fields (queuedPlayers / Note.type)聽#81
While integrating @liamcottle/rustplus.js@2.5.0 into a Rust+ desktop/web companion app, I ran into protobuf decode crashes caused by fields marked as required in rustplus.proto, even though the Rust+ API does not always include them.
I encountered crashes such as:
ProtocolError: missing required 'queuedPlayers'
and later:
ProtocolError: missing required 'type'
inside AppTeamInfo.Note.
From what I can tell, newer Rust servers sometimes omit these fields entirely, causing protobufjs to throw during decoding.
I was able to fix the issue locally by changing these fields from required to optional:
Activity