Re: [I] 404 Route Not Found in apisix 3.6.1 [apisix]

2024-05-24 Thread via GitHub


github-actions[bot] commented on issue #10907:
URL: https://github.com/apache/apisix/issues/10907#issuecomment-2129131874

   This issue has been closed due to lack of activity. If you think that is 
incorrect, or the issue requires additional review, you can revive the issue at 
any time.


-- 
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-unsubscr...@apisix.apache.org

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



Re: [I] 404 Route Not Found in apisix 3.6.1 [apisix]

2024-05-24 Thread via GitHub


github-actions[bot] closed issue #10907: 404 Route Not Found in apisix 3.6.1
URL: https://github.com/apache/apisix/issues/10907


-- 
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-unsubscr...@apisix.apache.org

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



Re: [I] 404 Route Not Found in apisix 3.6.1 [apisix]

2024-05-21 Thread via GitHub


github-actions[bot] commented on issue #10907:
URL: https://github.com/apache/apisix/issues/10907#issuecomment-2122248776

   Due to lack of the reporter's response this issue has been labeled with "no 
response". It will be close in 3 days if no further activity occurs. If this 
issue is still relevant, please simply write any comment. Even if closed, you 
can still revive the issue at any time or discuss it on the 
d...@apisix.apache.org list. Thank you for your contributions.


-- 
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-unsubscr...@apisix.apache.org

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



Re: [I] 404 Route Not Found in apisix 3.6.1 [apisix]

2024-03-20 Thread via GitHub


gujiwork commented on issue #10907:
URL: https://github.com/apache/apisix/issues/10907#issuecomment-2009939337

   我也遇到了这个问题,apisix版本: 3.4.0, 稳定运行了几个月,突然有些接口出现{"error_msg":"404 Route Not 
Found"}, 下线接口重新上线也不行,日志也没有相关的报错提示


-- 
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-unsubscr...@apisix.apache.org

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



Re: [I] 404 Route Not Found in apisix 3.6.1 [apisix]

2024-02-06 Thread via GitHub


theweakgod commented on issue #10907:
URL: https://github.com/apache/apisix/issues/10907#issuecomment-1931178057

   Have u resolved this issue?


-- 
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-unsubscr...@apisix.apache.org

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



Re: [I] 404 Route Not Found in apisix 3.6.1 [apisix]

2024-02-05 Thread via GitHub


theweakgod commented on issue #10907:
URL: https://github.com/apache/apisix/issues/10907#issuecomment-1928906953

   I'm not sure why you're using the radixtree_host_uri as router match mode, 
as you've only set the URI without setting the host. I believe you need to set 
your router's host and include the host when sending requests. Let's try that 
and see if the requests go through. The requests have reached APISIX, but the 
router didn't match, resulting in a 404 error.


-- 
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-unsubscr...@apisix.apache.org

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



Re: [I] 404 Route Not Found in apisix 3.6.1 [apisix]

2024-02-05 Thread via GitHub


githubxubin commented on issue #10907:
URL: https://github.com/apache/apisix/issues/10907#issuecomment-1928642471

   > Hi @githubxubin Is the problem only with this route? Are the others 
working stably?
   > 
   > 1. if you try to replace from `"uri": "/test/*"` to `"uri": "/test"`, and 
send the reqest without the last backslash (like 
`http://10.210.21.130:9080/test` ), will it work?
   > 2. Are you sure that your upstream 10.210.21.105.1001 is working correctly?
   >try sending the request directly, ignoring apisix, or from apisix 
container.
   
   1. I still got 404 according to what you said.
   2.10.210.21.105.1001 / test is normal service, in addition, the Route 404 
Not Found is apisix returned, Not to the upstream, and this should be no 
relationship, I'm on the 3.2 - centos is normal, upgrade to 3.6 this kind of 
problem
   
   route config:
   ```
   {
 "uri": "/test",
 "name": "test",
 "groupId": "",
 "openId": "",
 "priority": 1,
 "methods": [
   "GET",
   "POST",
   "PUT",
   "DELETE",
   "PATCH",
   "HEAD",
   "OPTIONS"
 ],
 "upstream": {
   "nodes": [
 {
   "host": "10.210.21.105",
   "port": 1001,
   "weight": 1
 }
   ],
   "retries": 0,
   "timeout": {
 "connect": 6,
 "send": 6,
 "read": 6
   },
   "type": "roundrobin",
   "scheme": "http",
   "pass_host": "pass",
   "keepalive_pool": {
 "idle_timeout": 60,
 "requests": 1000,
 "size": 320
   }
 },
 "status": 1
   }
   ```
   


-- 
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-unsubscr...@apisix.apache.org

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



Re: [I] 404 Route Not Found in apisix 3.6.1 [apisix]

2024-02-05 Thread via GitHub


forcanza commented on issue #10907:
URL: https://github.com/apache/apisix/issues/10907#issuecomment-1927371743

   Hi @githubxubin 
   Is the problem only with this route?
   Are the others working stably?
   
   1. if you try to replace from `"uri": "/test/*"` to `"uri": "/test"`, and 
send the reqest without the last backslash (like 
`http://10.210.21.130:9080/test` ), will it work?
   
   2. Are you sure that your upstream 10.210.21.105.1001 is working correctly?
   try sending the request directly, ignoring apisix, or from apisix container.
   


-- 
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-unsubscr...@apisix.apache.org

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



Re: [I] 404 Route Not Found in apisix 3.6.1 [apisix]

2024-02-05 Thread via GitHub


theweakgod commented on issue #10907:
URL: https://github.com/apache/apisix/issues/10907#issuecomment-1926990324

   You didn't set the host, but you used the host uri mode. This is strange. 
Can you set the host?


-- 
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-unsubscr...@apisix.apache.org

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



Re: [I] 404 Route Not Found in apisix 3.6.1 [apisix]

2024-02-05 Thread via GitHub


githubxubin commented on issue #10907:
URL: https://github.com/apache/apisix/issues/10907#issuecomment-1926545316

   Can someone help with this
   @theweakgod @indrekj @huacnlee @markokocic 


-- 
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-unsubscr...@apisix.apache.org

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



Re: [I] 404 Route Not Found in apisix 3.6.1 [apisix]

2024-02-05 Thread via GitHub


githubxubin commented on issue #10907:
URL: https://github.com/apache/apisix/issues/10907#issuecomment-1926483411

   > Did you check out the error log?
   
   the access log:
   ```
   192.168.96.194 - - [05/Feb/2024:08:46:51 +] 10.20.60.51 "GET /status/ 
HTTP/1.1" 404 47 0.000 "-" "PostmanRuntime-ApipostRuntime/1.1.0" - - - 
"http://10.20.60.51";
   
   ```


-- 
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-unsubscr...@apisix.apache.org

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



Re: [I] 404 Route Not Found in apisix 3.6.1 [apisix]

2024-02-05 Thread via GitHub


githubxubin commented on issue #10907:
URL: https://github.com/apache/apisix/issues/10907#issuecomment-1926481680

   > Did you check out the error log?
   
   No match. The log level is info
   
   ```
   2024/02/05 08:46:51 [info] 50#50: *6315 [lua] radixtree_host_uri.lua:161: 
match(): route match mode: radixtree_host_uri, client: 192.168.96.194, server: 
_, request: "GET /status/ HTTP/1.1", host: "10.20.60.51"
   2024/02/05 08:46:51 [info] 50#50: *6315 [lua] init.lua:633: 
http_access_phase(): not find any matched route, client: 192.168.96.194, 
server: _, request: "GET /status/ HTTP/1.1", host: "10.20.60.51"
   2024/02/05 08:46:51 [info] 50#50: *6315 client 192.168.96.194 closed 
keepalive connection
   
   ```


-- 
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-unsubscr...@apisix.apache.org

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



Re: [I] 404 Route Not Found in apisix 3.6.1 [apisix]

2024-02-05 Thread via GitHub


theweakgod commented on issue #10907:
URL: https://github.com/apache/apisix/issues/10907#issuecomment-1926466457

   Did you check out the error log?


-- 
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-unsubscr...@apisix.apache.org

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



Re: [I] 404 Route Not Found in apisix 3.6.1 [apisix]

2024-02-04 Thread via GitHub


githubxubin commented on issue #10907:
URL: https://github.com/apache/apisix/issues/10907#issuecomment-1926392394

   > Can you set up routing in this format? I have not reproduced your problem, 
please follow this format to set router.
   > 
   > ```json
   > {
   >   "uri": "/status/*",
   >   "name": "test1",
   >   "methods": [
   > "GET",
   > "POST",
   > "PUT"
   >   ],
   >   "upstream": {
   > "nodes": [
   >   {
   > "host": "localhost",
   > "port": 2112,
   > "weight": 1
   >   }
   > ],
   > "timeout": {
   >   "connect": 6,
   >   "send": 6,
   >   "read": 6
   > },
   > "type": "roundrobin",
   > "scheme": "http",
   > "pass_host": "pass",
   > "keepalive_pool": {
   >   "idle_timeout": 60,
   >   "requests": 1000,
   >   "size": 320
   > }
   >   },
   >   "status": 1
   > }
   > ```
   
   Can you take a look
   


-- 
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-unsubscr...@apisix.apache.org

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



Re: [I] 404 Route Not Found in apisix 3.6.1 [apisix]

2024-02-04 Thread via GitHub


githubxubin commented on issue #10907:
URL: https://github.com/apache/apisix/issues/10907#issuecomment-1926392003

   > Can you set up routing in this format? I have not reproduced your problem, 
please follow this format to set router.
   > 
   > ```json
   > {
   >   "uri": "/status/*",
   >   "name": "test1",
   >   "methods": [
   > "GET",
   > "POST",
   > "PUT"
   >   ],
   >   "upstream": {
   > "nodes": [
   >   {
   > "host": "localhost",
   > "port": 2112,
   > "weight": 1
   >   }
   > ],
   > "timeout": {
   >   "connect": 6,
   >   "send": 6,
   >   "read": 6
   > },
   > "type": "roundrobin",
   > "scheme": "http",
   > "pass_host": "pass",
   > "keepalive_pool": {
   >   "idle_timeout": 60,
   >   "requests": 1000,
   >   "size": 320
   > }
   >   },
   >   "status": 1
   > }
   > ```
   
   Can you take a look
   


-- 
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-unsubscr...@apisix.apache.org

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



Re: [I] 404 Route Not Found in apisix 3.6.1 [apisix]

2024-02-04 Thread via GitHub


githubxubin commented on issue #10907:
URL: https://github.com/apache/apisix/issues/10907#issuecomment-1926293391

   > Can you set up routing in this format? I have not reproduced your problem, 
please follow this format to set router.
   > 
   > ```json
   > {
   >   "uri": "/status/*",
   >   "name": "test1",
   >   "methods": [
   > "GET",
   > "POST",
   > "PUT"
   >   ],
   >   "upstream": {
   > "nodes": [
   >   {
   > "host": "localhost",
   > "port": 2112,
   > "weight": 1
   >   }
   > ],
   > "timeout": {
   >   "connect": 6,
   >   "send": 6,
   >   "read": 6
   > },
   > "type": "roundrobin",
   > "scheme": "http",
   > "pass_host": "pass",
   > "keepalive_pool": {
   >   "idle_timeout": 60,
   >   "requests": 1000,
   >   "size": 320
   > }
   >   },
   >   "status": 1
   > }
   > ```
   
   I also tried the 3.7 mirror and it was the same problem
   


-- 
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-unsubscr...@apisix.apache.org

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



Re: [I] 404 Route Not Found in apisix 3.6.1 [apisix]

2024-02-04 Thread via GitHub


githubxubin commented on issue #10907:
URL: https://github.com/apache/apisix/issues/10907#issuecomment-1926288220

   > ```shell
   > ```shell
   > curl` "http://127.0.0.1:9180/apisix/admin/routes?page=1&page_size=10"; -H 
'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X GET
   > ```
   > 
   > 
   > 
   >   
   > 
   > 
   >   
   > 
   > 
   > 
   >   
   > ```
   
   The same effect, or 404, my local development is also normal, is there a 
problem with what configuration, this is too strange 
   
   
![image](https://github.com/apache/apisix/assets/39228009/6aa79552-d591-4cbb-93bc-c3e32edea2f0)
   
   ```
   [root@localhost apisix-dashboard]# curl http://10.210.21.130:9080/status/ -v
   * About to connect() to 10.210.21.130 port 9080 (#0)
   *   Trying 10.210.21.130...
   * Connected to 10.210.21.130 (10.210.21.130) port 9080 (#0)
   > GET /status/ HTTP/1.1
   > User-Agent: curl/7.29.0
   > Host: 10.210.21.130:9080
   > Accept: */*
   > 
   < HTTP/1.1 404 Not Found
   < Date: Mon, 05 Feb 2024 06:00:39 GMT
   < Content-Type: text/plain; charset=utf-8
   < Transfer-Encoding: chunked
   < Connection: keep-alive
   < Server: APISIX/3.6.0
   < 
   {"error_msg":"404 Route Not Found"}
   * Connection #0 to host 10.210.21.130 left intact
   [root@localhost apisix-dashboard]# 
   
   ```
   
   ```
   [root@mysql5]# curl 
"http://127.0.0.1:9180/apisix/admin/routes?page=1&page_size=10"; -H 'X-API-KEY: 
edd1c9f034335f136f87ad84b625c8f1' -X GET
   
{"total":2,"list":[{"value":{"name":"test","groupId":"1","openId":"","upstream":{"retries":0,"timeout":{"send":6,"connect":6,"read":6},"discovery_args":{"group_name":"","namespace_id":""},"type":"roundrobin","pass_host":"pass","keepalive_pool":{"idle_timeout":60,"requests":1000,"size":320},"nodes":[{"port":1001,"host":"10.210.21.105","weight":1}],"scheme":"http"},"create_time":1707104130,"id":"499247217815585478","uri":"/test/*","priority":1,"update_time":1707112682,"methods":["GET","POST","PUT","DELETE","PATCH","HEAD","OPTIONS"],"status":0},"createdIndex":132,"key":"/apisix/routes/499247217815585478","modifiedIndex":266},{"value":{"name":"test1","groupId":"","openId":"","upstream":{"scheme":"http","type":"roundrobin","pass_host":"pass","keepalive_pool":{"idle_timeout":60,"requests":1000,"size":320},"nodes":[{"port":2112,"host":"localhost","weight":1}],"timeout":{"send":6,"connect":6,"read":6}},"create_time":1707112686,"id":"499261571847946959","uri":"/status/*","update_time":1707
 
112821,"methods":["GET","POST","PUT"],"status":1},"createdIndex":267,"key":"/apisix/routes/499261571847946959","modifiedIndex":268}]}
   ```
   


-- 
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-unsubscr...@apisix.apache.org

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



Re: [I] 404 Route Not Found in apisix 3.6.1 [apisix]

2024-02-04 Thread via GitHub


theweakgod commented on issue #10907:
URL: https://github.com/apache/apisix/issues/10907#issuecomment-1926281822

   Can you set up routing in this format? I have not reproduced your problem, 
please follow this format to set router.
   ``` json
   {
 "uri": "/status/*",
 "name": "test1",
 "methods": [
   "GET",
   "POST",
   "PUT"
 ],
 "upstream": {
   "nodes": [
 {
   "host": "localhost",
   "port": 2112,
   "weight": 1
 }
   ],
   "timeout": {
 "connect": 6,
 "send": 6,
 "read": 6
   },
   "type": "roundrobin",
   "scheme": "http",
   "pass_host": "pass",
   "keepalive_pool": {
 "idle_timeout": 60,
 "requests": 1000,
 "size": 320
   }
 },
 "status": 1
   }
   ```


-- 
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-unsubscr...@apisix.apache.org

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



Re: [I] 404 Route Not Found in apisix 3.6.1 [apisix]

2024-02-04 Thread via GitHub


githubxubin commented on issue #10907:
URL: https://github.com/apache/apisix/issues/10907#issuecomment-1926270577

   > Can you show me the result of the command
   > 
   > ```shell
   > curl` "http://127.0.0.1:9180/apisix/admin/routes?page=1&page_size=10"; -H 
'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X GET
   > ```
   
   Please take a look. It's very urgent. Thank you
   


-- 
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-unsubscr...@apisix.apache.org

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



Re: [I] 404 Route Not Found in apisix 3.6.1 [apisix]

2024-02-04 Thread via GitHub


githubxubin commented on issue #10907:
URL: https://github.com/apache/apisix/issues/10907#issuecomment-1926175312

   > 2\. curl http://10.210.21.130:9080/test/
   
   ```
   [root@mysql5]# curl 
"http://127.0.0.1:9180/apisix/admin/routes?page=1&page_size=10"; -H 'X-API-KEY: 
edd1c9f034335f136f87ad84b625c8f1' -X GET
   
{"list":[{"key":"/apisix/routes/499247217815585478","modifiedIndex":132,"value":{"uri":"/test/*","methods":["GET","POST","PUT","DELETE","PATCH","HEAD","OPTIONS"],"status":1,"update_time":1707104130,"priority":1,"groupId":"1","openId":"","upstream":{"timeout":{"send":6,"connect":6,"read":6},"keepalive_pool":{"requests":1000,"size":320,"idle_timeout":60},"retries":0,"nodes":[{"port":1001,"weight":1,"host":"10.210.21.105"}],"pass_host":"pass","scheme":"http","discovery_args":{"group_name":"","namespace_id":""},"type":"roundrobin"},"create_time":1707104130,"id":"499247217815585478","name":"test"},"createdIndex":132}],"total":1}
   
   ```
   
   ```
   [root@mysql5]# curl http://127.0.0.1:9080/test/
   {"error_msg":"404 Route Not Found"}
   
   ```


-- 
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-unsubscr...@apisix.apache.org

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



Re: [I] 404 Route Not Found in apisix 3.6.1 [apisix]

2024-02-04 Thread via GitHub


theweakgod commented on issue #10907:
URL: https://github.com/apache/apisix/issues/10907#issuecomment-1926012262

   Can you show me the result of the command 
   ``` bash
   curl` "http://127.0.0.1:9180/apisix/admin/routes?page=1&page_size=10"; -H 
'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X GET
   ```


-- 
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-unsubscr...@apisix.apache.org

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



Re: [I] 404 Route Not Found in apisix 3.6.1 [apisix]

2024-02-03 Thread via GitHub


githubxubin commented on issue #10907:
URL: https://github.com/apache/apisix/issues/10907#issuecomment-1925596050

   @indrekj @huacnlee @markokocic @jaysonsantos 


-- 
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-unsubscr...@apisix.apache.org

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