apisix icon indicating copy to clipboard operation
apisix copied to clipboard

bug: failed to match any routes"

Open lifehacking opened this issue 6 years ago • 5 comments

Issue description

client curl ---> route ---> upstream

client curl return: failed to match any routes

route config:

{
    "node": {
        "createdIndex": 52, 
        "modifiedIndex": 52, 
        "key": "/apisix/routes/2", 
        "value": {
            "priority": 0, 
            "upstream_id": "1", 
            "hosts": [
                "www.test.com"
            ], 
            "uris": [
                "/"
            ], 
            "id": "2"
        }
    }, 
    "action": "get"
}

upstream config:

{
    "node": {
        "createdIndex": 53, 
        "modifiedIndex": 53, 
        "key": "/apisix/upstreams/1", 
        "value": {
            "retries": 3, 
            "timeout": {
                "read": 30, 
                "connect": 30, 
                "send": 30
            }, 
            "nodes": {
                "192.168.1.6:8000": 1
            }, 
            "type": "roundrobin", 
            "id": "1", 
            "hash_on": "vars"
        }
    }, 
    "action": "get"
}

Environment

  • apisix version :1.5
  • OS: centos7.6

Minimal test code / Steps to reproduce the issue

1. 2. 3.

What's the actual result? (including assertion message & call stack if applicable)

client returen:

curl http://www.test.com/status/index.html {"error_msg":"failed to match any routes"}

What's the expected result?

lifehacking avatar Sep 18 '20 10:09 lifehacking

{ "error_msg": "failed to match any routes" }

Caelebs avatar Sep 21 '20 09:09 Caelebs

@membphis @nic-chen please take a look

moonming avatar Sep 23 '20 09:09 moonming

@lifehacking @Caelebs

image

membphis avatar Sep 24 '20 04:09 membphis

@membphis please use text instead of image, which is not friendly for search

moonming avatar Sep 24 '20 04:09 moonming

@lifehacking any update?

idbeta avatar Mar 01 '21 08:03 idbeta