Invalid get index 'data' on function "connect_to_eventsub" #20
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
In file
addons/gift/gift_node.gd
, on line 454 (last line of the following snippet, functionconnect_to_eventsub
)I get
Invalid get index 'data' (on base: 'Dictionary')
.The response was to the request was
{ "error": "Forbidden", "status": 403, "message": "subscription missing proper authorization" }
, which does not have thedata
key, which causes the error.Also, this code assumes the EventSub subscription process always succeeds, and does not handle any other outcome, which is problematic.
Twitch changed the API regarding the channel.follow event. I will put the event subscription in the hands of the user instead of handling all event versions by GIFT. There will only be a single 'event' signal with the type of event and data instead of a signal for each event.
Events will have to be subscribed to by specifying the event name, API version and conditions and emit all related data, which will not require me to update GIFT on every API change in the future.
Will add a check for failure of the subscription as well, I simply forgot <3
Thanks!