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
The ETF gateway leaks a Guild.Models.IncidentsData struct under the incidents_data key causing Elixir's built-in enumeration to raise.
This field does not seem to be documented in the API so I believe this is a bug. See Kraigie/nostrum#511
Steps to Reproduce
Currently unclear, I assume this field is sent as part of a GUILD_UPDATE or a new undocumented event.
In the meantime, to make your system more robust against mistakes like this, you can check is_struct(data) and then do Map.from_struct(data) and log a warning. That way you can still see and report issues to us, but it will not crash your library.
Description
The ETF gateway leaks a
Guild.Models.IncidentsData
struct under theincidents_data
key causing Elixir's built-in enumeration to raise.This field does not seem to be documented in the API so I believe this is a bug. See Kraigie/nostrum#511
Steps to Reproduce
Currently unclear, I assume this field is sent as part of a
GUILD_UPDATE
or a new undocumented event.A similar issue can be found at #4196.
Expected Behavior
No
:__struct__
keys are sent over the ETF gateway for any maps.Current Behavior
The following payload was received over the gateway:
A full stacktrace (with nostrum's guts):
Screenshots/Videos
No response
Client and System Information
nostrum 0.8.0
The text was updated successfully, but these errors were encountered: