Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
2 Risposte
1897 Visualizzazioni

I am trying to enable a webhook on Odoo SaaS. But while I am trying to send a POST request using POSTMAN. I am getting ERROR 500. 


Any help?

Avatar
Abbandona
Risposta migliore

Hi,
Enable logging for webhook and see the logs for more information.

See:  Create a New Record Using Webhook in Odoo 17

Thanks

Avatar
Abbandona
Risposta migliore

The automated action might be throwing an error. Add a try-except on the code and send another request. You should get an "ok" as response.

You can also test it with an empty automated action. In the webhook "Target Record" field, you can use: model.search([],limit=1)

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
2
lug 24
3267
2
ago 23
22105
1
dic 22
3785
0
lug 20
3222
2
mar 19
7540