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