backnero opened a new issue #2678:
URL: https://github.com/apache/apisix/issues/2678


   ### Issue description
   After upgrading to version 1.5, the attempt to call global'type' (a string 
value) error of ETCD appears
   ```
   2020/11/09 17:04:00 [error] 51#51: *341087 [lua] config_etcd.lua:389: failed 
to fetch data from etcd: 
/usr/local/apisix//deps/share/lua/5.1/resty/etcd/utils.lua:67: attempt to call 
global 'type' (a string value),  etcd key: /apisix/global_rules, context: 
ngx.timer
   2020/11/09 17:04:00 [error] 49#49: *341094 [lua] config_etcd.lua:389: failed 
to fetch data from etcd: 
/usr/local/apisix//deps/share/lua/5.1/resty/etcd/utils.lua:67: attempt to call 
global 'type' (a string value),  etcd key: /apisix/global_rules, context: 
ngx.timer
   2020/11/09 17:04:00 [error] 49#49: *341095 [lua] config_etcd.lua:389: failed 
to fetch data from etcd: 
/usr/local/apisix//deps/share/lua/5.1/resty/etcd/utils.lua:67: attempt to call 
global 'type' (a string value),  etcd key: /apisix/consumers, context: ngx.timer
   2020/11/09 17:04:00 [error] 49#49: *341096 [lua] config_etcd.lua:389: failed 
to fetch data from etcd: 
/usr/local/apisix//deps/share/lua/5.1/resty/etcd/utils.lua:67: attempt to call 
global 'type' (a string value),  etcd key: /apisix/ssl, context: ngx.timer
   2020/11/09 17:04:00 [error] 49#49: *341099 [lua] config_etcd.lua:389: failed 
to fetch data from etcd: 
/usr/local/apisix//deps/share/lua/5.1/resty/etcd/utils.lua:67: attempt to call 
global 'type' (a string value),  etcd key: /apisix/upstreams, context: ngx.timer
   2020/11/09 17:04:00 [error] 49#49: *341100 [lua] config_etcd.lua:389: failed 
to fetch data from etcd: 
/usr/local/apisix//deps/share/lua/5.1/resty/etcd/utils.lua:67: attempt to call 
global 'type' (a string value),  etcd key: /apisix/services, context: ngx.timer
   2020/11/09 17:04:00 [error] 49#49: *341101 [lua] config_etcd.lua:389: failed 
to fetch data from etcd: 
/usr/local/apisix//deps/share/lua/5.1/resty/etcd/utils.lua:67: attempt to call 
global 'type' (a string value),  etcd key: /apisix/proto, context: ngx.timer
   2020/11/09 17:04:00 [error] 49#49: *341102 [lua] config_etcd.lua:389: failed 
to fetch data from etcd: 
/usr/local/apisix//deps/share/lua/5.1/resty/etcd/utils.lua:67: attempt to call 
global 'type' (a string value),  etcd key: /apisix/routes, context: ngx.timer
   2020/11/09 17:04:00 [error] 50#50: *341113 [lua] config_etcd.lua:389: failed 
to fetch data from etcd: 
/usr/local/apisix//deps/share/lua/5.1/resty/etcd/utils.lua:67: attempt to call 
global 'type' (a string value),  etcd key: /apisix/ssl, context: ngx.timer
   2020/11/09 17:04:00 [error] 50#50: *341114 [lua] config_etcd.lua:389: failed 
to fetch data from etcd: 
/usr/local/apisix//deps/share/lua/5.1/resty/etcd/utils.lua:67: attempt to call 
global 'type' (a string value),  etcd key: /apisix/consumers, context: ngx.timer
   2020/11/09 17:04:00 [error] 50#50: *341115 [lua] config_etcd.lua:389: failed 
to fetch data from etcd: 
/usr/local/apisix//deps/share/lua/5.1/resty/etcd/utils.lua:67: attempt to call 
global 'type' (a string value),  etcd key: /apisix/global_rules, context: 
ngx.timer
   2020/11/09 17:04:00 [error] 50#50: *341116 [lua] config_etcd.lua:389: failed 
to fetch data from etcd: 
/usr/local/apisix//deps/share/lua/5.1/resty/etcd/utils.lua:67: attempt to call 
global 'type' (a string value),  etcd key: /apisix/proto, context: ngx.timer
   2020/11/09 17:04:00 [error] 50#50: *341117 [lua] config_etcd.lua:389: failed 
to fetch data from etcd: 
/usr/local/apisix//deps/share/lua/5.1/resty/etcd/utils.lua:67: attempt to call 
global 'type' (a string value),  etcd key: /apisix/services, context: ngx.timer
   2020/11/09 17:04:00 [error] 48#48: *341118 [lua] config_etcd.lua:389: failed 
to fetch data from etcd: 
/usr/local/apisix//deps/share/lua/5.1/resty/etcd/utils.lua:67: attempt to call 
global 'type' (a string value),  etcd key: /apisix/consumers, context: ngx.timer
   2020/11/09 17:04:00 [error] 48#48: *341119 [lua] config_etcd.lua:389: failed 
to fetch data from etcd: 
/usr/local/apisix//deps/share/lua/5.1/resty/etcd/utils.lua:67: attempt to call 
global 'type' (a string value),  etcd key: /apisix/global_rules, context: 
ngx.timer
   2020/11/09 17:04:00 [error] 48#48: *341120 [lua] config_etcd.lua:389: failed 
to fetch data from etcd: 
/usr/local/apisix//deps/share/lua/5.1/resty/etcd/utils.lua:67: attempt to call 
global 'type' (a string value),  etcd key: /apisix/proto, context: ngx.timer
   2020/11/09 17:04:00 [error] 48#48: *341121 [lua] config_etcd.lua:389: failed 
to fetch data from etcd: 
/usr/local/apisix//deps/share/lua/5.1/resty/etcd/utils.lua:67: attempt to call 
global 'type' (a string value),  etcd key: /apisix/ssl, context: ngx.timer
   ```
   ### Environment
   
   * apisix version (cmd: `apisix version`): 1.5
   * OS:centos7 【K8S】 【docker】
   ETCD:3.4.9
   ### Minimal test code / Steps to reproduce the issue
   1.
   2.
   3.
   
   ### What's the actual result? (including assertion message & call stack if 
applicable)
   adminAPI http 500 error
   
   
   ### What's the expected result?
   


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


Reply via email to