Hi there!
I’m using the example produced by Barry:
and I’m able to submit the subscription request, and receive the notification that it’s pending, but after that, things just stop.
Looking at the log Barry set up, it reads:
“Starting a POST processing
Missing sig”
And then it stops.
I’ve enabled the body data log, and can see that the following is being sent:
{“subscription”:{“id”:“CODE”,“status”:“webhook_callback_verification_pending”,“type”:“channel.follow”,“version”:“1”,“condition”:{“broadcaster_user_id”:“417634528”},“transport”:{“method”:“webhook”,“callback”:“https://WEBSITE.com/SUBDOMAIN/index.php"},“created_at”:“2021-07-27T16:46:56.928500273Z”,“cost”:0},“challenge”:"RANDOM STUFF”}
In the Head Data log, I’m seeing the following:
[Twitch-Eventsub-Subscription-Version] => 1
[Twitch-Eventsub-Subscription-Type] => channel.follow
[Twitch-Eventsub-Subscription-Is-Batching-Enabled] => false
[Twitch-Eventsub-Message-Type] => webhook_callback_verification
[Twitch-Eventsub-Message-Timestamp] => 2021-07-27T16:46:56.934171005Z
[Twitch-Eventsub-Message-Signature] => sha256=RANDOM STUFF
[Twitch-Eventsub-Message-Retry] => 3
[Twitch-Eventsub-Message-Id] => RANDOM STUFF
[Content-Type] => application/json
Can anyone see what I’m missing?
I know it’s reaching the site, as the log is being generated. It’s just failing to find the signature.
Also, in the PHP, it’s showing:
“echo rawurlencode($_GET[‘hub_challenge’]);”
Should it be hub_challenge?
I’m not familiar with PHP, but I feel I’m so close to finally getting Eventsub working!
Looking into the code a bit more, I noticed that a lot of it was lowercase… for example, instead of “Twitch-Eventsub-Message-Signature” it was “twitch-eventsub-message-signature”.
Correcting this seems to let me get further along, and I can see the two signatures match, but it’s not sending back the challenge. I wonder if this part is incorrect, too.