We have an action which updates a DB and refreshes a data table. When working within the “Edit App” mode - all works fine, but the exact same action fails from production.
Is there a way to debug the problem? Are there any logs produced when in production?
Hey @eran!
First of all to answer your question
Yes they are, you can easily check that by looking at the number of logs when in editing mode:
Change out of editing mode and do the things that are causing problems and when changing back the number of logs should be increased.
So where can we actually find what kind of logs:
As you probably know there are the logs of each action, which also contain everything you console.log(...)
:
And the general logs tab, which holds all the logs of all the actions together:
Something you might not have seen yet it the Audit logs
page you can access when not in the editing mode in the top left corner:
These logs are showing less about the actual results of action and stuff like that and care more about what has been opened, executed, etc. by the user:
To sum it all up, I guess your best shot is a mix of UIBakery’s native logs like the result from an action, what actions were started and then failed/succeeded, etc. and a fair amount of your own console.log(...)
's placed around code points and variables of interest. Also add javascript steps between pure SQL steps to check results more thoroughly.
But I is kind of weird that its not working in production, except you forgot to release your latest changes to production:
Always make sure you have the correct stage(s) selected!