blade-desk调用blade-flow提示"请求未授权"

Blade 未结 2 3447
莫more
莫more 2019-05-19 12:28

我按照帮助文档,创建请假申请不成功,调试时,发现blade-desk工程的startProcess函数调用blade-flow的startProcessInstanceById请求返回"请求未鉴权",从日志看这个请求头没有鉴权信息,怎么处理?


blade-desk,LeaveServiceImpl类的startProcess函数,调用startProcessInstanceById,

R result = flowClient.startProcessInstanceById(leave.getProcessDefinitionId(), FlowUtil.getBusinessKey(businessTable, String.valueOf(leave.getId())), variables);


日志输出:

2019-05-19 12:18:35.181  INFO 5836 --- [ix-blade-flow-3] o.s.core.cloud.http.OkHttpSlf4jLogger    : --> POST http://192.168.3.7:8008/clientstart-process-instance-by-id?processDefinitionId=Leave%3A1%3A0b65e6a5-6131-11e9-96f7-02426eb479c9&businessKey=blade_process_leave%3A1129964469724733442

2019-05-19 12:18:35.182  INFO 5836 --- [ix-blade-flow-3] o.s.core.cloud.http.OkHttpSlf4jLogger    : Content-Type: application/json;charset=UTF-8

2019-05-19 12:18:35.182  INFO 5836 --- [ix-blade-flow-3] o.s.core.cloud.http.OkHttpSlf4jLogger    : Content-Length: 73

2019-05-19 12:18:35.182  INFO 5836 --- [ix-blade-flow-3] o.s.core.cloud.http.OkHttpSlf4jLogger    : X-Real-IP: 127.0.0.1

2019-05-19 12:18:35.182  INFO 5836 --- [ix-blade-flow-3] o.s.core.cloud.http.OkHttpSlf4jLogger    : Accept: */*

2019-05-19 12:18:35.182  INFO 5836 --- [ix-blade-flow-3] o.s.core.cloud.http.OkHttpSlf4jLogger    : 

2019-05-19 12:18:35.182  INFO 5836 --- [ix-blade-flow-3] o.s.core.cloud.http.OkHttpSlf4jLogger    : {"createUser":"admin","taskUser":"taskUser_1123598821738675202","days":2}

2019-05-19 12:18:35.182  INFO 5836 --- [ix-blade-flow-3] o.s.core.cloud.http.OkHttpSlf4jLogger    : --> END POST (73-byte body)

2019-05-19 12:18:35.202  INFO 5836 --- [ix-blade-flow-3] o.s.core.cloud.http.OkHttpSlf4jLogger    : <-- 200 OK http://192.168.3.7:8008/clientstart-process-instance-by-id?processDefinitionId=Leave%3A1%3A0b65e6a5-6131-11e9-96f7-02426eb479c9&businessKey=blade_process_leave%3A1129964469724733442 (20ms)

2019-05-19 12:18:35.202  INFO 5836 --- [ix-blade-flow-3] o.s.core.cloud.http.OkHttpSlf4jLogger    : Connection: keep-alive

2019-05-19 12:18:35.202  INFO 5836 --- [ix-blade-flow-3] o.s.core.cloud.http.OkHttpSlf4jLogger    : Content-Type: application/json;charset=UTF-8

2019-05-19 12:18:35.202  INFO 5836 --- [ix-blade-flow-3] o.s.core.cloud.http.OkHttpSlf4jLogger    : Content-Length: 64

2019-05-19 12:18:35.202  INFO 5836 --- [ix-blade-flow-3] o.s.core.cloud.http.OkHttpSlf4jLogger    : Date: Sun, 19 May 2019 04:18:35 GMT

2019-05-19 12:18:35.202  INFO 5836 --- [ix-blade-flow-3] o.s.core.cloud.http.OkHttpSlf4jLogger    : 

2019-05-19 12:18:35.203  INFO 5836 --- [ix-blade-flow-3] o.s.core.cloud.http.OkHttpSlf4jLogger    : {"code":401,"success":false,"data":null,"msg":"请求未授权"}

2019-05-19 12:18:35.203  INFO 5836 --- [ix-blade-flow-3] o.s.core.cloud.http.OkHttpSlf4jLogger    : <-- END HTTP (64-byte body)

2019-05-19 12:18:35.209  INFO 5836 --- [  XNIO-3 task-8] o.s.core.log.aspect.RequestLogAspect     : 


2条回答
提交回复