inEditorMode attribute does not evaluate?

Hey,
So i'm making an api call from Retool into my Python backend app. I send those headers from my resource:
x-snap-retool-env = {{ retoolContext.environment }}
x-snap-retool-editing-mode = {{ retoolContext.inEditorMode }}

In my backend, I find that the env resolves correctly:
-request.headers.get('x-snap-retool-env', '')
'local'

however, when I evaluate the inEditorMode attribute, I simply gets the unevaluated code as a string:

-request.headers.get('x-snap-retool-editing-mode', '')
'{{ retoolContext.inEditorMode }}'

We have tried many many variations but we always get the code as a string rather than the evaluation.
This used to work a few days ago, so either we broke something (we did change our app to include modules, which we didn't previously) or something got broken on the retool side in the last few days.

Would appreciate any help - this currently completely blocks our project.
Thanks,
Yaniv

1 Like

Hi @Yaniv_Bin,

That is very odd that this was working before and now it isn't :sweat: apologies for the inconvenience.

In terms of getting things unblocked first, so we can then later troubleshoot the JS evals, has switching off modules or reverting back to a previous version of the app been attempted?

Hopefully that can get things back to working, and we can test in another development environment that isn't production to see what we can do.

My first guess would be trying to save {{ retoolContext.inEditorMode }} into a JS variable and see if that variable.value if that evaluations on query build at run time.

If that doesn't work either, the next step would be testing this out to reproduce the query for our engineers to take a look at. In which case I would need either a clone of your app or a screenshot of the whole query set up which you could DM to me here on the forums.