etcd-adapter
etcd-adapter copied to clipboard
The current implementation stores data in the MySQL database but routes don't forward to upstreams
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
@leslie-tsang need your help