Callback URL problem when trying to subscribe with EventSub

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.

            method: "POST",
            url: "",
            headers: {
                "Content-Type": "application/json",
                'Client-Id': "*************",
                'Authorization': `Bearer ${data.access_token}`
            data: {
                "type": "",
                "version" : "1",
                "condition" : {
                    "broadcaster_user_id": "38746172"
                "transport": {
                    "method": "webhook",
                    "callback": "http://localhost:443/eventsub",
                    "secret" : "clientSecret"
        .then((res) => {
        .catch((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.

You cannot use localhost as a callback URL

localhost = my computer

so to twitch localhost is twitch not you.

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