etcd-adapter icon indicating copy to clipboard operation
etcd-adapter copied to clipboard

The current implementation stores data in the MySQL database but routes don't forward to upstreams

Open nfrankel opened this issue 2 years ago • 1 comments

How to reproduce

  • Use the MySQL configuration

  • Create a route:

    curl -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X POST -d '{                                          
       "methods": ["GET"],
       "uris": ["/get"],
       "upstream": {
       "nodes": {
          "httpbin.org:80": 1
        }
      }
    }' http://localhost:9180/apisix/admin/routes
    
  • Test the route: curl localhost:9080/get

  • Result: {"error_msg":"404 Route Not Found"}

Also, getting all routes returns {"header":{"revision":"1689689596"},"message":"Key not found"}

This repo has everything already set up: https://github.com/ajavageek/apisix-mysql

nfrankel avatar Jul 19 '23 06:07 nfrankel

@leslie-tsang need your help

membphis avatar Jul 19 '23 06:07 membphis