Dify安装插件,任务一直在后台无法删除怎么处理
Authorization,从登录后的Dify后台,按F12在网络请求头获取,替换下面命令中的请求头
linux 执行命令
curl \
-X POST "http://localhost/console/api/workspaces/current/plugin/tasks/delete_all" \
-H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoiNjdiZDQ2NjktMDRhMi00NmRiLWFlNjItNzYzMmU0NTY4YTczIiwiZXhwIjoxNzU0NDY0NzcyLCJpc3MiOiJTRUxGX0hPU1RFRCIsInN1YiI6IkNvbnNvbGUgQVBJIFBhc3Nwb3J0In0.-Z65dVBwQR8x8ivmtMUyzavazb59rS8ia01cZbKCsM4" \
-H "Content-Type: application/json" \
-d '{"key":"value"}'
powershell 执行命令
curl.exe `
-X POST "http://localhost/console/api/workspaces/current/plugin/tasks/delete_all" `
-H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoiNjdiZDQ2NjktMDRhMi00NmRiLWFlNjItNzYzMmU0NTY4YTczIiwiZXhwIjoxNzU0NDY0NzcyLCJpc3MiOiJTRUxGX0hPU1RFRCIsInN1YiI6IkNvbnNvbGUgQVBJIFBhc3Nwb3J0In0.-Z65dVBwQR8x8ivmtMUyzavazb59rS8ia01cZbKCsM4" `
-H "Content-Type: application/json" `
-d '{"key":"value"}'

浙公网安备 33010602011771号