You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2022/01/09 07:32:30 UTC

[GitHub] [apisix] bnyte edited a comment on issue #6046: How to get path variable

bnyte edited a comment on issue #6046:
URL: https://github.com/apache/apisix/issues/6046#issuecomment-1008244435


   @tokers The browser requests `/v1/user/login/:username` but the request obtained by the backend service is `/sso/v1/user/login/bnytezz` now request `/v1/user/login/bnytezz` my service cant get this request but i can get `/v1/user/login/:username`
   
   Sorry, my English is not good, I use Chinese now to retell
   
   我在`apisix`配置了`/v1/open/user/auth/:token`这个路由,本质上这个`:token`应该是路由参数,但是在我发起请求时如果请求`/v1/open/user/auth/dasjkdjahbduq`我的服务无法成功接收到请求直接被`apisix给404拦截了`,但是当我请求`/v1/open/user/auth/:token`这个时我的服务能接受请求,并且这个路径参数的值就是`:token`也就是说在这个位置`apisix`没有去动态路由


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org