Event Sub Example Not Working

That appears to be the closest so far, but it’s unfortunately sat on pending.

It doesn’t appear to be sending back that challenge.

I added “mylog(‘Success!!!’);” to the log so I can see if it got through, but I’m not seeing the “Returning the challenge” log entry.

if ($our_signature == $twitch_signature) {
    // passes test
mylog('Success!!!');
    if ($headers['twitch-eventsub-message-type'] == 'webhook_callback_verification') {
        // it's a verification request
        $data = json_decode($raw_data);
        // and check the data parse
        if (json_last_error() == JSON_ERROR_NONE) {
            mylog('Returning the challenge: ' . $data['challenge']); 
            echo rawurlencode($data['challenge']);
            exit;
        }
        mylog('Failed to parse the JSON to verification');
        echo 'Failed to parse JSON';
        exit;
    }

Would that suggest it IS finding an error while decoding the JSON?