Issues Receiving Twitch EventSub

Hi,

I’m having issues with Twitch EventSub. For testing purposes, I’m using a Cloudflare Tunnel as the callback URL (since the Twitch CLI doesn’t support setting a prompt for the channel point redemption event).

The verification works fine when using the Twitch CLI (twitch event verify-subscription), both with localhost and with the tunnel URL. So the backend is working, and the endpoint is reachable.

I’ve enabled logging on the tunnel and never see any request coming from Twitch during the verification attempt. I’ve checked the logs and even tried disabling Cloudflare security features like Bot Fight Mode to rule out anti-DDoS protections as the cause. Still, nothing ever reaches the server.

The tunnel is stable and has valid A and AAAA DNS records. SSL is set up and managed by Cloudflare, and the domain passes external SSL tests, so I don’t believe the issue is related to certificate configuration.

I’ve been trying to resolve this for the past few days without success. I would appreciate any help or insight into why Twitch isn’t sending the verification request to the callback URL.

Thanks.

try ngrok instead of cloudflare tunnel?

To rule out any cloudflare issues.

I tested it with ngrok and it worked, but now I moved the app to production and encounter the same issue.

Is production also behind cloudflare?

Yes, and the dashboard shows still no blocked request.

@BarryCarlyon same here worked fine on ngrok during dev, now i got a real server + domain on cloudflare pages and its just dead,

nothing hits my server, cf dashboard shows no blocks, is twitch just straight up ignore sending anything cause its behind cf server? it feels like twitch is like if server.cloudflare == true dontTry()?

curl works, twitch cli works, so its something between twitch and the live server, i have no clue anymore, dont wanna disable cf completely

Disabled CF on the specific route

I specualte CF is blocking it at a route level for some reason before it even hits you. But thats been an issue with PayPal IPN for 20+ years… It’s always CF causing issues somewhere with Webhook type things

Its not possible to disable cf only for the /twitchsub route