Skip to main content

I am encountering an issue while testing Webhook integration. Despite following the related documentation, I am unable to successfully create a webhook.

To facilitate local testing, I am using ngrok. I have set up a path to receive payloads from the webhook and configured it to return the x_front_challenge, 200, {"Content-Type": "text/plain"} as suggested in the documentation. However, I still receive a "Webhook verification failed" error.

Here is the relevant portion of my code:

I am not encountering any errors within the function itself, so I suspect the issue may be related to the return statement. Any assistance in resolving this would be greatly appreciated.

(I am working on Odoo/Python btw)

Thank you.

 

Hi sra!  This is Evan, one of the support engineers at Front.

I’m not familiar with Odoo, but looking at their Web Controller documentation:

https://www.odoo.com/documentation/15.0/developer/reference/backend/http.html#routing

It was suggested to check werkzeug’s routing documentation for the correct format.  Checking that link, I believe that the return value should be wrapped as a Response:

https://werkzeug.palletsprojects.com/en/3.0.x/wrappers/#werkzeug.wrappers.Response

Please let me know if that helps!


Hi sra!  This is Evan, one of the support engineers at Front.

I’m not familiar with Odoo, but looking at their Web Controller documentation:

https://www.odoo.com/documentation/15.0/developer/reference/backend/http.html#routing

It was suggested to check werkzeug’s routing documentation for the correct format.  Checking that link, I believe that the return value should be wrapped as a Response:

https://werkzeug.palletsprojects.com/en/3.0.x/wrappers/#werkzeug.wrappers.Response

Please let me know if that helps!

Thank you evano! It works

For anyone encountering the same issue, I had to rewrite the _json_response function to get it working.

 


Reply