You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have noticed today that when you enable Webhooks, if you receive the Webhook that the WeKan server wont insert the User's change into the database until you respond back from your WebHook callback.
I am assuming that this is by design, so that you can use webhooks to prevent inserts (by responding with a code that isn't 200 etc)?
The text was updated successfully, but these errors were encountered:
I have a HTTP server receiving the webbook events from WeKan, this is not a problem.
When I change a custom field value, that sends a webhook event to my HTTP server which I receive using my server.
If my server does not respond with 200 OK (or any response) but instead keeps the connection active, then WeKan will not save my change to the custom field.
As soon as I give a response to the webhook then WeKan saves my change to the database.
It appears the Webhook code is blocking the change event from saving in WeKan to until after it receives a valid response from the server.
To test this. Simply create a HTTP server, and dont respond when you receive a webhook request. Make a change to a custom field and then refresh your page. The OLD value will still be populated in the field and not the new value.
As I said, this may be the desired behavior (blocking updates to the MongoDb until after a valid Webhook server response is received) as it allows developers to prevent changes from occurring if they want. But I just wanted to check as it is not documented that I can find, and probably should be.
I have noticed today that when you enable Webhooks, if you receive the Webhook that the WeKan server wont insert the User's change into the database until you respond back from your WebHook callback.
I am assuming that this is by design, so that you can use webhooks to prevent inserts (by responding with a code that isn't 200 etc)?
The text was updated successfully, but these errors were encountered: