Using SSL labs with my webhook links comes back as A
ive checked and subscription is created
Using twitch CLI for test it works, but when ever i unmod someone in my channel i do not get any response at all, Any idea
Thank you for the reply. sorry first time doing anything with Webhooks, managed to confirm the call back verifcation has failed but can not work out why
here is my route code
@app.route(‘/webhook’, methods=[‘GET’, ‘POST’])
def handle_webhook():
if request.method == ‘GET’:
# Extract the challenge parameter from the query string
challenge = request.args.get(‘challenge’)
print(“Challenge:”, challenge) # Print the challenge parameter
if challenge:
# Respond to the verification challenge with the provided value
return challenge, 200, {‘Content-Type’: ‘text/plain’}
else:
# Respond with an error if no challenge is provided
return ‘Invalid request’, 400
elif request.method == ‘POST’:
try:
data = request.json
# Process the event data here
return jsonify({‘success’: True})
except Exception as e:
print(“Error handling webhook:”, e)
return jsonify({‘success’: False, ‘error’: str(e)})
Thank you very much that has helped and got me past that part and now got all clear on Twitch CLI and its recieving the webhook back (although 400 bad request) as its Midnight here im going to pause for the night and revisit it tomorrow, as this issue is now resolved will mark as resolved thanks again