[BUG] Workflow API returns "a1 is required in input form" even when input is provided (v1.11.0 self-hosted) #22237

Closed
opened 2026-02-21 20:16:16 -05:00 by yindo · 2 comments
Owner

Originally created by @PEPravin on GitHub (Feb 17, 2026).

Self Checks

  • I have read the Contributing Guide and Language Policy.
  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report, otherwise it will be closed.
  • 【中文用户 & Non English User】请使用英语提交,否则会被关闭 :)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

1.11.0

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

  1. Create a Workflow app
  2. Add Start node with:
    • variable: a1
    • type: text-input
    • required: true
  3. Add Code node:
def main(a1: str):
    return {
        "result": a1,
    }
  1. Connect Start → Code → End
  2. Publish workflow
  3. Generate API key
  4. Call API:

POST /v1/workflows/run

Request:

{
  "inputs": {
    "a1": "Hello"
  },
  "user": "abc-123"
}

✔️ Expected Behavior

Workflow should execute and return:

{
  "workflow_run_id": "...",
  "data": {
    "outputs": {
      "result": "Hello"
    }
  }
}

Actual Behavior

Returns 400:

{
  "code": "invalid_param",
  "message": "a1 is required in input form",
  "status": 400
}
Originally created by @PEPravin on GitHub (Feb 17, 2026). ### Self Checks - [x] I have read the [Contributing Guide](https://github.com/langgenius/dify/blob/main/CONTRIBUTING.md) and [Language Policy](https://github.com/langgenius/dify/issues/1542). - [x] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [x] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [x] I confirm that I am using English to submit this report, otherwise it will be closed. - [x] 【中文用户 & Non English User】请使用英语提交,否则会被关闭 :) - [x] Please do not modify this template :) and fill in all the required fields. ### Dify version 1.11.0 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce 1. Create a Workflow app 2. Add Start node with: - variable: a1 - type: text-input - required: true 3. Add Code node: ``` def main(a1: str): return { "result": a1, } ``` 4. Connect Start → Code → End 5. Publish workflow 6. Generate API key 7. Call API: POST /v1/workflows/run Request: ``` { "inputs": { "a1": "Hello" }, "user": "abc-123" } ``` ### ✔️ Expected Behavior Workflow should execute and return: ``` { "workflow_run_id": "...", "data": { "outputs": { "result": "Hello" } } } ``` ### ❌ Actual Behavior Returns 400: ``` { "code": "invalid_param", "message": "a1 is required in input form", "status": 400 } ```
yindo added the 🐞 bug label 2026-02-21 20:16:16 -05:00
yindo closed this issue 2026-02-21 20:16:16 -05:00
Author
Owner

@PEPravin commented on GitHub (Feb 17, 2026):

Workflow Image
Image

@PEPravin commented on GitHub (Feb 17, 2026): Workflow Image <img width="1465" height="438" alt="Image" src="https://github.com/user-attachments/assets/f402b55a-6c69-48ef-a88b-8369d8fb45a8" />
Author
Owner

@PEPravin commented on GitHub (Feb 17, 2026):

I found out the issue, we are using Envoy where we added an HTTP route, we remove and it worked.

@PEPravin commented on GitHub (Feb 17, 2026): I found out the issue, we are using Envoy where we added an HTTP route, we remove and it worked.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#22237