Fix the twitch-cli event verification test
I setup everything correctly on my end and tried to test the verification and the twitch-cli respons with this unhelpful error:
✗ Invalid content-type header. Received type
text/plain doesn't work, text/html doesn't work, application/json doesn't work. No Content-Type value I can think of works.
Why is there a restriction on the Content-Type that is kept an absolute mystery?
2
votes

-
BarryCarlyon commented
Your error suggests that you didn't return a content type header as the error message says it recieved no content type header.
The content-type for verficiation is text/plain
Source code for the CLI
The error reports what your content-type was from the call, which seems to be blank.