WindmillWWindmill
Powered by
GarrettG
Windmill•5mo ago
Garrett

"variable is not defined", but it exists

I am very new to windmill, so this could be an user error.
I try to access a user variable in a "Step Input" of a "Send POST Request (http)" action.

To reproduce (also see screenshots):

1. Create a user variable (
u/USER/test
u/USER/test
), not a secret.
2. Create new flow with "Send POST Request (http)" action.
3. Add
${variable('u/USER/test')}
${variable('u/USER/test')}
in the Step Input "url".
4. Press "Re-evaluate input step" in tab "Test this step".
5. Error message "Error evaluating url: variable is not defined" appears.

I didn't find any example in the documentation, how to use variables inside Step Inputs.
Just putting text directly into the input field "url" or using
flow_input
flow_input
does work.

Actual username in text and screenshots was replaced.

description: Example
edited_at: ""
edited_by: ""
extra_perms: {}
path: u/USER/example
schema:
  $schema: https://json-schema.org/draft/2020-12/schema
  properties: {}
  required: []
  type: object
summary: Example
value:
  modules:
    - id: a
      summary: Send POST Request (http)
      value:
        input_transforms:
          body:
            type: static
            value: {}
          headers:
            type: static
            value: {}
          url:
            expr: "`${variable('u/USER/test')}`"
            type: javascript
        path: hub/11643/http/send_post_request
        type: script
description: Example
edited_at: ""
edited_by: ""
extra_perms: {}
path: u/USER/example
schema:
  $schema: https://json-schema.org/draft/2020-12/schema
  properties: {}
  required: []
  type: object
summary: Example
value:
  modules:
    - id: a
      summary: Send POST Request (http)
      value:
        input_transforms:
          body:
            type: static
            value: {}
          headers:
            type: static
            value: {}
          url:
            expr: "`${variable('u/USER/test')}`"
            type: javascript
        path: hub/11643/http/send_post_request
        type: script
2025-10-11-004036.png
2025-10-11-004102.png
2025-10-11-004635.png
2025-10-11-005933.png
WindmillJoin
3,388Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?
Recent Announcements
henri-c

We're live here https://discord.com/channels/930051556043276338/1278977038430240813

henri-c · 2d ago

rubenf

Infrastructure as code

rubenf · 3w ago

rubenf

As we're preparing for a new Windmill sandbox SDK, we took the opportunity **to open-source NSJAIL sandboxing** and make it available in CE and easier to set. In 1.634.0, just set nsjail to benefit from the tightest security and isolation per job. It's constraining so no need to use it unless you need but now you won't be restricted in security for CE if you need to.

rubenf · 4w ago

Similar Threads

Slack error handler: Resource exists but you don't have access to it
invakid404Iinvakid404 / help
2y ago
How do I interpret a variable that exists in JSON data?
MigaloMMigalo / help
9mo ago
Creating custom react components fails with jsxRuntime not defined
alex4oAalex4o / help
2y ago