-
Choerodon平台版本:0.6.0
-
运行环境(如localhost或k8s):localhost
-
遇到问题时的前置条件:
-
问题描述:
使用 Swagger 调用 todo-service 的 GET api /v1/tasks/{id}
时返回 403 错误,调用前已经成功登陆。
gateway-helper
服务中出现日志如下:
INFO [gateway-helper,74fe8947e0728af0,74fe8947e0728af0,false] 1 --- [ XNIO-3 task-7] i.c.g.h.p.RequestPermissionFilter : error.permissionVerifier.permission, can't find request service route, request uri /todo/v1/tasks/1, zuulRoutes {event=ZuulRoute{id='null', path='/event/**', serviceId='event-store-service', url='null', stripPrefix=true, retryable=null, helperService='gateway-helper', sensitiveHeaders=[], sensitiveHeadersJson='null', customSensitiveHeaders=false}, devops=ZuulRoute{id='null', path='/devops/**', serviceId='devops-service', url='null', stripPrefix=true, retryable=null, helperService='null', sensitiveHeaders=[], sensitiveHeadersJson='null', customSensitiveHeaders=false}, iam=ZuulRoute{id='null', path='/iam/**', serviceId='iam-service', url='null', stripPrefix=true, retryable=null, helperService='null', sensitiveHeaders=[], sensitiveHeadersJson='null', customSensitiveHeaders=false}, oauth=ZuulRoute{id='null', path='/oauth/**', serviceId='oauth-server', url='null', stripPrefix=false, retryable=null, helperService='null', sensitiveHeaders=[], sensitiveHeadersJson='null', customSensitiveHeaders=false}, notify=ZuulRoute{id='null', path='/notify/**', serviceId='notification-service', url='null', stripPrefix=true, retryable=null, helperService='null', sensitiveHeaders=[], sensitiveHeadersJson='null', customSensitiveHeaders=false}, manager=ZuulRoute{id='null', path='/manager/**', serviceId='manager-service', url='null', stripPrefix=true, retryable=null, helperService='null', sensitiveHeaders=[], sensitiveHeadersJson='null', customSensitiveHeaders=false}, file=ZuulRoute{id='null', path='/file/**', serviceId='file-service', url='null', stripPrefix=true, retryable=null, helperService='null', sensitiveHeaders=[], sensitiveHeadersJson='null', customSensitiveHeaders=false}, org=ZuulRoute{id='null', path='/org/**', serviceId='organization-service', url='null', stripPrefix=true, retryable=null, helperService='null', sensitiveHeaders=[], sensitiveHeadersJson='null', customSensitiveHeaders=false}}
MySQL 中的 mgmt_route 表信息:
目前找不到是什么原因,请求框架组帮忙!