Eventsub may not trigger

Sorry, I may be confusing things.

As it’s based on your code from the previous topic, it’s constantly running as it’s on the server. Twitch will contact my index file when an event fires, and the index will return the callback.

I was interested in the way in which you created the log, so I based my code from that.

When an event is triggered, it will add it to a log. Then when I use my program, it will download that log, check if there are any events, and then act upon them. Once actioned, it will clear the log, ready for the next event to be triggered.

While it’s doing this, it also populates a log that is never cleared, so if I note a subscription or cheer that didn’t generate a response, I can check the second log to see if it was event generated.

Most of the time, when something doesn’t occur, it has not been logged… which doesn’t make sense to me.

I have never personally revoked permission or access (including changing the password), so I guess it’s happening at another point that I’m not seeing.

If my code is offline, and I were to run a channel point redemption or something, I can see the log being updated most of the time.

As I said, when my program loads up, it checks that all of the correct events have been subscribed to, then, if it finds one that isn’t, it posts the missing eventsub to api.twitch.tv/helix/eventsub/subscriptions.

Is this wrong?