-
Notifications
You must be signed in to change notification settings - Fork 285
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Webhook triggered even if conditions evaluation is False #2881
Comments
Thanks for opening this issue! A maintainer will review this in the next few days and explicitly select labels so you know what's going on. If no reviewer appears after a week, a reminder will be sent out. |
If multiple conditions are linked each-other with a boolean |
I also found other tricky behaviour :
Webhook stored on relay node : "conditions": [
{
"value": "3",
"condition": "eq",
"key": "type"
}
],
"target": "http://144.202.75.170:5001/ark_delegate/voteRefund",
"event": "transaction.applied",
"enabled": true,
"token": "...",
"id": "1ef0ba25-dbaf-4d44-b7a3-5a1abbf02201" payload received :
|
This issue or pull request needs further investigation. Please wait for further information, thank you. |
#2887 - Will be release on mainnet sometime next week. |
This issue has been closed. If you wish to re-open it please provide additional information. |
I deployed a webhook using the condition Using an
In sent data, |
I deployed a listener using ark-core webhook :
The transactions bellow triggerred this webhook (I provide the log from my app to see token authorization match) :
https://explorer.ark.io:8443/api/transactions/f1aa4f28eeed5565a450ba83fd511fc0e506472c12f9fa98da9e6209ec165e70
https://explorer.ark.io:8443/api/transactions/d1da70d8d5805b952571ae0776702f39dee4771a3f5498596fd15fec2cc6a698
Expected Behavior
In thoses transactions,
amount <= "2500000000"
and their vendorFields do not match the re^arky.*$
so they should never have triggered the webhook POST.Context
Testing my ark-listener project :
https://github.com/Moustikitos/ark-listener
Ideas
The reasons I see is that the amount comparison is done using string (see python example). I got no idea about why the
regexp
did not work well.The text was updated successfully, but these errors were encountered: