I’m new to coding and I want to make a notification application for myself. I read the documentation and tried to do it as much as I could and now I’m having a problem that I can’t overcome.
axios({
method: "POST",
url: "https://api.twitch.tv/helix/eventsub/subscriptions",
headers: {
"Content-Type": "application/json",
'Client-Id': "*************",
'Authorization': `Bearer ${data.access_token}`
},
data: {
"type": "stream.online",
"version" : "1",
"condition" : {
"broadcaster_user_id": "38746172"
},
"transport": {
"method": "webhook",
"callback": "http://localhost:443/eventsub",
"secret" : "clientSecret"
}
}
})
.then((res) => {
console.log(res.data)
})
.catch((error) => {
{
console.log(error)
}
});
I’m trying to subscribe to an event but I’m getting error:
data: {
error: ‘Bad Request’,
status: 400,
message: ‘callback must provide valid https callback with standard port in creation request’
}
I’m trying to use eventubs and learn something, but I couldn’t overcome this problem.
also i will share all my code, I would be happy if you help me.
https://justpaste.it/7b7b9