Refresh server action won't execute

Hello,

We have developed API Endpoint for external systems which push data to our Wappler DB.
In the very end of data processing API action workflow I had Response 200 and then Refresh Server Action - for socket - so that data is displayed for web users.

And I found that if Refresh Server actions comes after Response 200 - it’s not executed, but if sequence is Refresh Server Action and Response 200 after - all works as it should work.

image

Question to @patrick - is it by design or some sort of bug?

That is by design, after a response is send to the client it ends the execution of the action, so steps after the response do not run. You can compare it with a return statement in a javascript function.

2 Likes

Thank you for the explanation.