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,362Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?
Recent Announcements
henri-c

Weekly kenote to tell you about our latest updates https://discord.com/channels/930051556043276338/1278977038430240813 https://youtube.com/live/2dGd9TdT8xs?feature=share

henri-c · 4d ago

Pyra

### HTTP tracing (EE) Capture HTTP requests made by job scripts as observability spans Features: - View HTTP request traces (method, URL, status, timing) in the job details UI - Auto-instrumentation for Native TypeScript, MITM proxy for other languages - Integrates with external OpenTelemetry collectors changelog: https://www.windmill.dev/changelog/http-tracing docs: https://www.windmill.dev/docs/advanced/instance_settings#http-tracing Additionally jobs memory metrics are now fully OSS!

Pyra · 2w ago

henri-c

First keynote of the year here https://discord.com/channels/930051556043276338/1278977038430240813 🙂

henri-c · 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
8mo ago
Creating custom react components fails with jsxRuntime not defined
alex4oAalex4o / help
2y ago