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/07 10:32:44 UTC

[GitHub] [apisix] bnyte opened a new issue #6046: request help:

bnyte opened a new issue #6046:
URL: https://github.com/apache/apisix/issues/6046


   ### Issue description
   
   I want to configure my parameters in path, how should I configure him? I have configured it now but `apisix` gives me `404 responses` 
   
   > i am sure that this 404 is not responded to by my backend service
   
   below is the recurrence
   
   - routing config
   
   ![](https://user-images.githubusercontent.com/75556346/148527130-56eb34d6-2eed-4630-8c8f-fc204acd8fdc.png)
   
   - apisix 404 response
   
   ![image](https://user-images.githubusercontent.com/75556346/148527024-7f96d2b6-0dc6-462b-9035-7405770e4fa9.png)
   
   
   ### Environment
   
   all are the latest version, and run in the latest version of docker


-- 
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



[GitHub] [apisix] tzssangglass commented on issue #6046: How to get path variable

Posted by GitBox <gi...@apache.org>.
tzssangglass commented on issue #6046:
URL: https://github.com/apache/apisix/issues/6046#issuecomment-1007626368


   refer to: https://github.com/apache/apisix/blob/master/docs/en/latest/router-radixtree.md#5-parameter-match


-- 
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



[GitHub] [apisix] bnyte closed issue #6046: How to get path variable

Posted by GitBox <gi...@apache.org>.
bnyte closed issue #6046:
URL: https://github.com/apache/apisix/issues/6046


   


-- 
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



[GitHub] [apisix] bnyte commented on issue #6046: request help:

Posted by GitBox <gi...@apache.org>.
bnyte commented on issue #6046:
URL: https://github.com/apache/apisix/issues/6046#issuecomment-1007305220






-- 
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



[GitHub] [apisix] bnyte commented on issue #6046: How to get path variable

Posted by GitBox <gi...@apache.org>.
bnyte commented on issue #6046:
URL: https://github.com/apache/apisix/issues/6046#issuecomment-1011745448


   > 
   
   This configuration does the trick, thanks for your help, I'll close it now


-- 
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



[GitHub] [apisix] bnyte commented on issue #6046: How to get path variable

Posted by GitBox <gi...@apache.org>.
bnyte commented on issue #6046:
URL: https://github.com/apache/apisix/issues/6046#issuecomment-1007891201


   ![image](https://user-images.githubusercontent.com/75556346/148633054-293708fd-7551-4611-9545-8b963843fe4d.png)
   
   if value = `:token` my service can get this request... apisix does not have dynamic routing... I want to get the way how to configure routing correctly


-- 
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



[GitHub] [apisix] bnyte commented on issue #6046: How to get path variable

Posted by GitBox <gi...@apache.org>.
bnyte commented 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`


-- 
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



[GitHub] [apisix] bnyte commented on issue #6046: request help:

Posted by GitBox <gi...@apache.org>.
bnyte commented on issue #6046:
URL: https://github.com/apache/apisix/issues/6046#issuecomment-1007305220


   # supplement
   
   I have been successful once, but the value obtained by my back-end service is `:token`


-- 
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



[GitHub] [apisix] tokers commented on issue #6046: How to get path variable

Posted by GitBox <gi...@apache.org>.
tokers commented on issue #6046:
URL: https://github.com/apache/apisix/issues/6046#issuecomment-1008238323


   @bnyte What's your need? Could you describe it more concisely and exactly?


-- 
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



[GitHub] [apisix] bnyte commented on issue #6046: How to get path variable

Posted by GitBox <gi...@apache.org>.
bnyte commented on issue #6046:
URL: https://github.com/apache/apisix/issues/6046#issuecomment-1007880698


   > 参考:[https](https://github.com/apache/apisix/blob/master/docs/en/latest/router-radixtree.md#5-parameter-match) : [//github.com/apache/apisix/blob/master/docs/en/latest/router-radixtree.md#5-parameter-match](https://github.com/apache/apisix/blob/master/docs/en/latest/router-radixtree.md#5-parameter-match)
   
   In my opinion, my configuration may be consistent with the link you provided. My question may be how to rewrite the uri through regularization. Maybe apisix supports adding uri prefix uniformly?


-- 
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



[GitHub] [apisix] tzssangglass commented on issue #6046: How to get path variable

Posted by GitBox <gi...@apache.org>.
tzssangglass commented on issue #6046:
URL: https://github.com/apache/apisix/issues/6046#issuecomment-1007626368


   refer to: https://github.com/apache/apisix/blob/master/docs/en/latest/router-radixtree.md#5-parameter-match


-- 
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



[GitHub] [apisix] tzssangglass commented on issue #6046: How to get path variable

Posted by GitBox <gi...@apache.org>.
tzssangglass commented on issue #6046:
URL: https://github.com/apache/apisix/issues/6046#issuecomment-1008315578


   > `master`/docs/en/latest/router-radixtree.md#5-parameter-match
   
   did you set 
   
   ```yaml
   apisix:
       router:
           http: 'radixtree_uri_with_parameter'
   ```


-- 
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



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

Posted by GitBox <gi...@apache.org>.
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