Having a hard time figuring out why this is returning 410 "gone" from the API.
const res = await fetch(
'https://api.twitch.tv/helix/eventsub/subscriptions',
{
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Client-ID': CONFIG.get().twitch.apiClientId,
Authorization: `Bearer ${CONFIG.get().twitch.apiOwnerOauthToken}`
},
body: JSON.stringify({
type: 'channel.follow',
version: '1',
condition: {
broadcaster_user_id: CONFIG.get().twitch.ownerId
},
transport: {
method: 'websocket',
session_id: event.payload.session.id
}
})
}
);
I’ve tested purposely including a bad access token to make sure it returns unauthorized as well as malforming the request to make sure it’s returning bad request, but when everything is seemingly working properly, I’m getting gone.
This is being sent well before the 10 seconds required and logs show that it returns gone before my websocket connection is closed with reason: connection unused.
I’ve also tested the webhook transport and get the same gone status. Is there a new endpoint that I’m not seeing in the docs or something else I’m missing?