[ REALTIME] Problems Payload - On Realtime Event - Xano Database Trigger

Hello weweb community,

I’m experiencing an issue where the on realtime event is not returning the payload data as expected. Despite setting up the event correctly, the payload appears empty when triggered.

See in details:

Could you please assist in identifying why the payload data isn’t being retrieved?

Thank you for your support.

Hi @moscatelli!

I’m not sure what you are passing as the channel name, but you need to make sure it’s a string matching the same channel name you’ve set up in Xano. That could be it.

Hello @danlopes ,

Thank you very much for the feedback. I’ve been stuck on this issue for over a day without finding a solution.

The channel name is correct and is being passed as a string (see the image below). I’m not sure if it’s a configuration I missed, but it seems to be an issue with the Xano Realtime plugin for the Event option, as it is not able to retrieve the payload from Xano.

I’m unsure if it’s a bug in the WeWeb Xano plugin or if there’s an additional configuration I still need to do.

Can you help me?

Try removing the ‘‘Edit formula’’ part and setting the channel name directly as a string, as per the example below:

Zrzut ekranu 2024-08-22 120119

@danlopes

I had already tested it this way and the problem still persists.

I can’t reproduce your issue. Do you get the same issue every time you use the Realtime Event function, or only when working with this function + channel triggers?

@danlopes

The requirement for my application is that when the status field in the extraction table is changed to Error or Success, I need to send an event to the channel to retrieve the updated information and continue the logic in WeWeb. The problem is what I mentioned above; for some reason, the event is detected in WeWeb, but it doesn’t bring the payload.

If you or someone from the team has access to Xano, you can create a database trigger in a Test table and set up the Realtime Event Function. This way, you can confirm whether it’s an issue with the plugin Realtime Xano or not.

I tested the Realtime Event function and it works fine with WeWeb. Xano triggers are only available on paid Xano plans and I have no access to them, so I can’t help you now.

@danlopes
I created a support ticket on the weweb over a day ago and am waiting for a response. If you could somehow check the progress, I would appreciate it!

Thanks for your help so far!

2 Likes

Hi, did you try to bind and log the content of the event when it happens ? The binding UI is only displaying a template allowing you to bind an expected event. There is no real event at the moment so your data will not be displayed there, but it should be the correct value once the trigger is executed and your event received.

For exemple you can see on your screenshot for the channel “My channel name”, as it’s a template

Thank you, @Alexis

It’s a bit counterintuitive to discern what is a template and what is actually expected as a return. Since there are scenarios where collections display the returned data, I was still confused because I expected to see the results there. Maybe there could be a UX improvement in the future so that other users don’t get confused! It took me more than 24 hours to realize that the issue was that it was a template and not the actual expected result.

Thanks for the feedback, we will try to update the text to make it more obvious :slight_smile:

1 Like