We have a JS Query (not a transformer), with various lines, and. a console .log, but although the query runs the console.log shows...nothing!
Hey @peter.b,
If the Retool app console isn't showing the data, you can check the browser console to see if it's working or to get more details on the issue. Let me know if you need any help!
We copied the entire JS code, and created anew query, then pasted that in and it worked.
so something went wrong with the JS but no erros at all - maybe raise this as a bug?
v3.114.10 (on prem).
Hey @peter.b ,
My Retool app console is working perfectly:
It also works in the browser console:
I'm using the latest Retool version (3.168). You might want to try:
Adding
console.error()
to check for hidden issues.
Usingreturn
statements to verify if execution reaches certain points.
Retool sometimes caches JS queries weirdly—recreating them might have forced a reset.
It is very flaky, and almost unusable
we have an onSuccess in teh query which should fire but doesnt, the debug shows the trigger ran successfully so why didnt the onSuccess fire? then the console log should have. run but it didnt.
No errors, no syntax errors, just a JS query that doesnt work, but for no apparent reason.
If I cant get the console.log to work then how to debug it?
and. you're right, iRetool definitely caches these things unreliably
We split. out the. query into several smaller queries and it ran ok 8, 9 times then it froze again.. Something dodgy going on, we cleared the browser cache, still no joy!