TL;DR: Subscribing to a channel with this callback url https://website:8080 gives this: callback must provide valid https callback with standard port in creation request. Why?
[TLDR ends here]
My headers are {“Authorization”: “Bearer app token duh”, “Client-Id”: “my id”}
My data is
{“type”: “stream.online”,
“version”: “1”,
“condition”: {“broadcaster_user_id”: user_data[“data”][0][“id”]},
“transport”: {“method”: “webhook”, “callback”: “https://website:8080”, “secret”: “secret duh”}}
But whenever I try to run my code with this,
async with aiohttp.ClientSession() as session:
async with session.post(“https://api.twitch.tv/helix/eventsub/subscriptions”, json=data, headers=headers) as resp:
print(await resp.json())
I just get status 400 with the message ‘callback must provide valid https callback with standard port in creation request’.
In the twitch dev console, my OAuth Redirect URL is https://website:8080 if that matters. My callback server is listening at http://localhost:8080, and when I use the twitch CLI to test it it works fine.
Is there anything wrong with my callback url?
If there is any other information required, just ask!