Closed dbrennand closed 3 years ago
Hi, this looks like a problem with pydantic, not your code.
Auraxium uses a pydantic model for all messages it receives to validate and parse them into the object model representation. This gem of a message is its way of complaining about bad types. I have created an issue for this lack of information; this really should not result in a user-facing error message as this is not provoked by your code (#51).
It looks like there are alerts whose experience type is a float or other non-integer type. I started logging a session, but it might take a while before we get an alert violating the constraint. I confirmed that this was the issue, a fix is underway.
The issue with your snippet has been resolved. Similar data model incompatibilities should now also result in a more helpful error message that also includes the offending payload to make correcting the model faster. Thank you for the report!
Hi, I'm using a slightly modified version of a snippet of code from the README.
I have altered:
@client.trigger(event.BattleRankUp)
to@client.trigger(event.MetagameEvent)
.Here is my code:
However, the following error occurs on when an event is received:
Is my usage incorrect?