
146ia (146ia) asked a question.
I'm trying to get my end point to verify for the Event Webhook, but for some reason it's returning this error:
Unable to verify event hook. Hook "Test_deprevision" execution failed. org.springframework.web.reactive.function.client.WebClientResponseExceptionBadGateway: 502 Bad Gateway from GET <url link>
My current code looks like this:
chal = event['headers']['X-Okta-Verification-Challenge']
re_value = json.dumps({'verification': chal})
return re_value
Anything I'm missing in the response? Thank you!

Hello @146ia (146ia) Thank you for reacting out to our Community!
Based on the error you are receiving, it would seem the URL you are using is not correct. You might want to double check that and see what could be wrong. Please also see a few of our docs below that might provide some assistance:
https://www.okta.com/identity-101/bad-gateway/
https://developer.okta.com/docs/concepts/event-hooks/#requests-sent-by-okta
Additionally if you need further assistance we recommend to leverage the Okta Developer forums for this type of questions and take advantage of their expertise.
https://devforum.okta.com/
Community members help others by clicking Like or Select as Best on responses. Try it today.