Hello,
I am a noobie in programming network-based programms.
I would like to use EventSub in python but I get the following error:
{‘error’: ‘Bad Request’, ‘status’: 400, ‘message’: ‘invalid transport’}
There is already a post about this error, but I didn’t understood the answer.
[EventSub - Trying to send the challenge response]
In python:
url = f"https://api.twitch.tv/helix/eventsub/subscriptions"
headers = {“Client-ID”: self.CLIENT_ID,
“Authorization”: “Bearer 2usysigpkwy25b427d8qz9h9vXXXXX”,
“Content-Type”: “application/json”}
post(url, headers=headers).json()
I don’t have a clue what’s going wrong.
Things I have tried:
Running this command in cmd (same error)
Expose a web server on port 80 using ngrok: ngrok http 443
Thanks in advance.