plugin downloading window, always has 1 plugin to be downloaded #20442

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

Originally created by @bi-yechao on GitHub (Nov 20, 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.10.0

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

1.download plugin
2.network error
3.try to post http://localhost/console/api/workspaces/current/plugin/tasks/delete_all
4.{"code":"unauthorized","message":"CSRF token is missing or invalid.","status":401}
5.chrome command line,try to get CSRF token
6.all information can't be used to call the api

✔️ Expected Behavior

1.call the service api succuess
2.plugin-managering window is clean

Actual Behavior

1.localhost dify service all failed

Image Image
Originally created by @bi-yechao on GitHub (Nov 20, 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.10.0 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce 1.download plugin 2.network error 3.try to post http://localhost/console/api/workspaces/current/plugin/tasks/delete_all 4.{"code":"unauthorized","message":"CSRF token is missing or invalid.","status":401} 5.chrome command line,try to get CSRF token 6.all information can't be used to call the api ### ✔️ Expected Behavior 1.call the service api succuess 2.plugin-managering window is clean ### ❌ Actual Behavior 1.localhost dify service all failed <img width="867" height="202" alt="Image" src="https://github.com/user-attachments/assets/996d1e48-a900-4377-8549-dda4ffaaeb82" /> <img width="1962" height="835" alt="Image" src="https://github.com/user-attachments/assets/157207fb-b356-4588-9da1-53684f87b0f9" />
yindo added the 🐞 bug label 2026-02-21 20:07:28 -05:00
yindo closed this issue 2026-02-21 20:07:28 -05:00
Author
Owner

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

Hi @bi-yechao! I'm Dosu and I’m helping the dify team.

Your CSRF token error is likely caused by a mismatch between the CSRF cookie name set by the backend and what the frontend expects, especially in Docker/self-hosted setups. Recent fixes in Dify addressed this by ensuring the frontend reads the correct COOKIE_DOMAIN and matches the CSRF cookie name with the backend, resolving "CSRF token is missing or invalid" errors. Make sure your environment is updated with these changes and that COOKIE_DOMAIN is set consistently in both your backend and frontend configs. This should allow API calls (like deleting plugin tasks) to succeed and clear the stuck plugin download window. See the merged fix for details: fix: resolve CSRF token cookie name mismatch in browser.

To reply, just mention @dosu.


How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other  Chat with Dosu Join Discord Share on X

@dosubot[bot] commented on GitHub (Nov 20, 2025): <!-- Greeting --> Hi @bi-yechao! I'm [Dosu](https://go.dosu.dev/dosubot) and I’m helping the dify team. <!-- Answer --> Your CSRF token error is likely caused by a mismatch between the CSRF cookie name set by the backend and what the frontend expects, especially in Docker/self-hosted setups. Recent fixes in Dify addressed this by ensuring the frontend reads the correct `COOKIE_DOMAIN` and matches the CSRF cookie name with the backend, resolving "CSRF token is missing or invalid" errors. Make sure your environment is updated with these changes and that `COOKIE_DOMAIN` is set consistently in both your backend and frontend configs. This should allow API calls (like deleting plugin tasks) to succeed and clear the stuck plugin download window. See the merged fix for details: [fix: resolve CSRF token cookie name mismatch in browser](https://github.com/langgenius/dify/pull/28378). <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).* --- <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/03051925-bac4-4113-a0b2-6f527d2b16f1?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/03051925-bac4-4113-a0b2-6f527d2b16f1?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/03051925-bac4-4113-a0b2-6f527d2b16f1?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/03051925-bac4-4113-a0b2-6f527d2b16f1?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/03051925-bac4-4113-a0b2-6f527d2b16f1?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/03051925-bac4-4113-a0b2-6f527d2b16f1?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/03051925-bac4-4113-a0b2-6f527d2b16f1?feedback_type=other)</sup>&nbsp;&nbsp;[![Chat with Dosu](https://dosu.dev/dosu-chat-badge.svg)](https://app.dosu.dev/6088a4f4-073a-43f3-b3d4-4f06fb0c05a0/ask?utm_source=github)&nbsp;[![Join Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share on X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/langgenius/dify/issues/28450)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#20442