Yangzcy423911 commented on issue #3266: URL: https://github.com/apache/apisix/issues/3266#issuecomment-760014396
Here are my suggestions local res, _ = config:getkey("/routes") if res and res.headers then clear_tab(key_values) -- global max key_values[1] = "x_etcd_index" metrics.etcd_modify_indexes:set(res.headers["X-Etcd-Index"], key_values) end end modifying code line local res, _ = config:getkey("/routes") One line of code in the above code, when obtaining this key, if you add the prefix of reading etcd configuration from the configuration file, and then splice this key, you can avoid the problem of inaccessible interface caused by permissions. ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org