The-White-Lion commented on issue #6005:
URL: https://github.com/apache/apisix/issues/6005#issuecomment-1004771933


   It's not a bug.
   In the first method you tried, a non-existent function `core.etcd:getkey`  
was used. You can read the [source code 
](https://github.com/apache/apisix/blob/master/apisix/core/etcd.lua) to see the 
supported functinos. In this case, You can use function `core.etcd.get(key, 
true)` ( use dot instaed of colons) to get data.
   In the second method you tried, before you call `core.confing:getkey()` 
function, you shuold call the function `core.config.new()`. 
   Otherwise, you will exit in here 
https://github.com/apache/apisix/blob/d3bb8f9035b14b35e2d2eccd0959ed00e8fe88e3/apisix/core/config_etcd.lua#L488.
   
   Note: Make sure that what is stored under this key is not an object.


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to