[SOLVED] Not receiving stream up/down notifications


I have a problem, I’m not receiving any notification if a stream goes up or down. I’m using a reverse proxy to forward the requests from twitch to my java application.

I make the request and listen for the challenge key from twitch, as soon as it arrives, I print it and send a 200 OK response code and that’s it, after that, nothing happens. No error code, no notification, nothing.

Any idea what I’m doing wrong? Maybe an issue with the reverse proxy not sending the challenge key back to twitch? Could I run this application without reverse proxy, in other words, can I set another port for the callback url?

Java Application / Server Class

I do not see any POST requests to https://api.twitch.tv/helix/webhooks/hub in your sample code.

What does your subscription request look like>

Like this: https://pastebin.com/eiK7GrRH

root.addProperty(“hub.lease_seconds”, 600);

Would be the issue.

You are setting up a stream up/down subscription that will last for 600 seconds

Your subscription is expiring before you can get a up/down

1 Like

But I tested it with my own account, the time difference between the subscription and my stream start would at max be about 2 minutes or so

Set your subscription to a longer lease time, like 86400 for a day…

1 Like

Also it sounds like you might be raising your subscription around the same time as you going live.

This might mean the stream up occurs before your subscription exists…

1 Like

Okay, that seems working. I thought it would be a bit faster than 2 - 3 minutes after the stream start but okay. Thx for helping out :slight_smile:

Webhooks wait for equivalent end point on Helix to match/show the same data

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.