Workflow, code execution node, javascript, 403 forbbiden #19834

Closed
opened 2026-02-21 20:04:28 -05:00 by yindo · 1 comment
Owner

Originally created by @quarkape on GitHub (Oct 22, 2025).

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.9.1

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

1.Create a new workflow or open an existing one in the Workflow Editor.
2.Add a "Code Execution" node to the workflow.
3.Configure the node, setting the language to "JavaScript".
4.Trigger a workflow configuration save action (e.g., by switching browser tabs and then switching back, or by clicking the save/publish button).
5.Observe the browser's network requests (F12). A request to the "/draft" endpoint fails with a 403 Forbidden error.
6.Refresh the page.
7.Observe that:
8.The workflow configuration reverts to its original state (before adding the "Code Execution" node).
9.Any subsequent changes to the workflow cannot be saved successfully.

✔️ Expected Behavior

4.After configuring the "Code Execution" node with the "JavaScript" language, the workflow configuration should save successfully when a save action is triggered.
2.The 403 Forbidden error on the "/draft" endpoint should not occur.
3.Changes, including the addition and configuration of the "Code Execution" node, should persist after a page refresh.

Actual Behavior

1.When the "Code Execution" node is set to use "JavaScript", triggering a save results in a failed request to "/draft" with a 403 Forbidden error.
2.The workflow configuration fails to save. Refreshing the page reverts all changes made during the session (e.g., the added "Code Execution" node is lost).
3.This effectively makes the workflow editor unusable for any further edits until the page is refreshed, but the changes are lost upon refresh.

Image

Image Image
Originally created by @quarkape on GitHub (Oct 22, 2025). ### 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.9.1 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce 1.Create a new workflow or open an existing one in the Workflow Editor. 2.Add a "Code Execution" node to the workflow. 3.Configure the node, setting the language to "JavaScript". 4.Trigger a workflow configuration save action (e.g., by switching browser tabs and then switching back, or by clicking the save/publish button). 5.Observe the browser's network requests (F12). A request to the "/draft" endpoint fails with a 403 Forbidden error. 6.Refresh the page. 7.Observe that: 8.The workflow configuration reverts to its original state (before adding the "Code Execution" node). 9.Any subsequent changes to the workflow cannot be saved successfully. ### ✔️ Expected Behavior 4.After configuring the "Code Execution" node with the "JavaScript" language, the workflow configuration should save successfully when a save action is triggered. 2.The 403 Forbidden error on the "/draft" endpoint should not occur. 3.Changes, including the addition and configuration of the "Code Execution" node, should persist after a page refresh. ### ❌ Actual Behavior 1.When the "Code Execution" node is set to use "JavaScript", triggering a save results in a failed request to "/draft" with a 403 Forbidden error. 2.The workflow configuration fails to save. Refreshing the page reverts all changes made during the session (e.g., the added "Code Execution" node is lost). 3.This effectively makes the workflow editor unusable for any further edits until the page is refreshed, but the changes are lost upon refresh. ![Image](https://github.com/user-attachments/assets/4bc4cc3e-df03-4c63-a4f8-a544188cec9f) <img width="1273" height="293" alt="Image" src="https://github.com/user-attachments/assets/e1b453ca-4c91-4381-a0aa-a599efc9062a" /> <img width="1905" height="151" alt="Image" src="https://github.com/user-attachments/assets/d046ea64-5367-4ee8-870d-d9643628a915" />
yindo added the 🐞 bug🌊 feat:workflow labels 2026-02-21 20:04:28 -05:00
yindo closed this issue 2026-02-21 20:04:28 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Nov 24, 2025):

Hi, @quarkape. I'm Dosu, and I'm helping the Dify team manage their backlog and am marking this issue as stale.

Issue Summary:

  • You reported a 403 Forbidden error on the "/draft" endpoint when saving a workflow with a "Code Execution" node using JavaScript in Dify v1.9.1 self-hosted with Docker.
  • This error prevents your changes from being saved and causes them to revert after refreshing the page.
  • No further comments or updates have been provided since your initial report.
  • The issue remains unresolved and no workaround or fix has been documented yet.

Next Steps:

  • Please let me know if this issue is still relevant with the latest version of Dify by commenting here to keep the discussion open.
  • Otherwise, this issue will be automatically closed in 15 days.

Thank you for your understanding and contribution!

@dosubot[bot] commented on GitHub (Nov 24, 2025): Hi, @quarkape. I'm [Dosu](https://dosu.dev), and I'm helping the Dify team manage their backlog and am marking this issue as stale. **Issue Summary:** - You reported a 403 Forbidden error on the "/draft" endpoint when saving a workflow with a "Code Execution" node using JavaScript in Dify v1.9.1 self-hosted with Docker. - This error prevents your changes from being saved and causes them to revert after refreshing the page. - No further comments or updates have been provided since your initial report. - The issue remains unresolved and no workaround or fix has been documented yet. **Next Steps:** - Please let me know if this issue is still relevant with the latest version of Dify by commenting here to keep the discussion open. - Otherwise, this issue will be automatically closed in 15 days. Thank you for your understanding and contribution!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#19834