Webhooks no work: error 400 #6842
Replies: 9 comments
-
Hi @DoAgency We released the Webhooks addon version |
Beta Was this translation helpful? Give feedback.
-
Hi @glaubersilva, Let me know please. |
Beta Was this translation helpful? Give feedback.
-
@DoAgency Is possible that you have some problems in the If that is the case, you can check the pending requests in the For reference, check the screenshot: You also can install the WP Crontrol plugin to check possible problems with your About the logs, keep in mind that our log system will record only errors by default. To log any other kind of messages like success messages, you need to set the
Reference: https://wordpress.org/documentation/article/debugging-in-wordpress/ Let me know if it did help figure out what is happening on your side. :) |
Beta Was this translation helpful? Give feedback.
-
Hi @glaubersilva and thanks for answer,
Thanks |
Beta Was this translation helpful? Give feedback.
-
@DoAgency thanks for sharing more details. If no requests are created in the
For this last case, I realize that you mentioned in one of your replies that the For this event in specific, these are the properties observed by the event:
Only these properties are watched because just they are sent in the event data body, so if you change any other information that is not sent by the event, it will not be triggered. I also ran some tests with your code and it worked as expected. To test your code, I created a WP Rest API endpoint in a live site using your code and I set up my local test site to send events to this live site. The result you can see in the attached screenshots: Let me know your findings! |
Beta Was this translation helpful? Give feedback.
-
Hi @glaubersilva ,
But i have:
|
Beta Was this translation helpful? Give feedback.
-
@DoAgency Thanks for sharing more details. Seems that you are using the manual donations addon to create new donations, so I ran a few tests and could confirm that the However, using a form to create the donations, it get triggered. Can you replicate this behavior on your end? |
Beta Was this translation helpful? Give feedback.
-
Hello @glaubersilva , |
Beta Was this translation helpful? Give feedback.
-
Hey, @DoAgency. We've investigated it and found that you've uncovered an edge-case issue with our Webhokos add-on. What is happening is that we are not triggering the donation_created event when a donation is created manually using the Manual Donations add-on. I've escalated this to our development team so they can work on a fix. You can follow up on the progress of the fix here https://feedback.givewp.com/bug-reports/p/the-webhooks-add-on-should-trigger-the-donationcreated-event-when-using-manual-d. We are actively tracking user issues to make sure our dev team is aware of them and can get them fixed. You can use the link to check in for updates or to provide additional details of your own. Give the post above a look, and let me know if you would like me to add any additional details. I want to make sure that you're able to see your needs as accurately reflected as possible, and I'm happy to include an internal note to our teams with any specific information you would like them to have. The workaround is to create these donations directly on the donation form. Bear in mind that you must be logged out to do so; otherwise, you will mix donor profiles. Thanks for using GiveWP! I hope you have a great day. |
Beta Was this translation helpful? Give feedback.
-
We installed "webhooks plugin" but we are encountering some difficulties.
After 2-3 call, the plugin stop working.
Plus, when it is functioning, the calls that it does goes in 400 error.
In function.php we put this code to test WPGive webhooks:
If I call my api by Postman everything works very well: https://[my-domain]/wp-json/api/v1/citta
If I call my code by webhooks of WPGive, for example I set "donation_updated", in log of WPGive we see this error:
{\"code\":\"rest_invalid_json\",\"message\":\"È stato passato un JSON con il body non valido.\",\"data\":{\"status\":400,\"json_error_code\":4,\"json_error_message\":\"Syntax error\"}}
We cannot modify the body so we don't know how to proceed.
Anyway, after 2 times, also if I update a donation, there is no more log in WPGive.
Beta Was this translation helpful? Give feedback.
All reactions