Querying EventHandle Events using API: "message": "Deserialization error, field(message) type is not a EventHandle struct: unexpected end of input" #99
-
Asked by
keywords: API, Events |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
The error message suggests that the expected type for the message field is not an EventHandle struct. The format should be Can you try running this? These steps can be seen on the "Your First Move Module" page, under step 5. |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
Thanks for the detailed explanation. I think I know what the problem you're experiencing is:
The API calls are trying to query the
MessageHolder
resource for events. However, the resource does not contain any Event Handles. This is likely because 'Event Handles' is deprecated now, and instead we use 'Module Events'. WhileEventHandle
events still work, developers are encouraged to migrate to Module Events.The tutorial over here needs to be updated, we will have that done soon.
For now, if you'd still like to proceed, you can do this:
set_message
function add the required logic.