Baketa0000 - Hi, hope anyone can help me to und...
Hi, hope anyone can help me to understand what I am doing wrong or if I have encounter a software bug, I want to capture the payment information from a stripe webhook, I have the hook configured to "checkout.session.completed" and everything is set up properly on the Stripe side of things and I do get the hook.
Next node is to get data for the transaction from my supabase table, it works fine, I can retrieve all the fields related to the transaction refered by the stripe´s checkout id.
The problem is with the branch node that follows, here is the condition: " ctx["root"]["c133b812-5de5-4680-a6b9-7bf6cab3b54a"][0].credits == true " so that if the value of the field "credits" I got from the Get Row node equals "true" then do something else do something else.
For some reason it fails with the error " "label": "Branch",
"message": "Cannot read properties of undefined (reading 'credits')"
}"
which I don´t understand why, so I set up a new workflow which is the same other than the trigger node being a Post request insted, and this one works fine, here is a screnshot of both, the details , filters, and everything on the supabase node and branch node are identical
4 Replies
Hi @Baketa0000, You can add an empty node or log node before to check if the value (x)GetPaymentValue is coming correct in the Stripe Webhook Trigger. It will help to debug if the value refernced in the condtion is parsing correctly.
Hi, yes I have tried that and it shows the right value, so I don't understand
Can you try deleting and adding the branch node again? You can submit your workflow via in-app support. We can take a look.
have done and submitted the workflow thanks