Marco-Zheng opened a new issue #4007:
URL: https://github.com/apache/apisix/issues/4007


   ### Issue description
   when  i start apisix,here come's a problem as below which said 'Bad http 
library. Should use api7-lua-resty-http instead'
   
![image](https://user-images.githubusercontent.com/52538259/114021668-8433a380-98a3-11eb-9c2f-7aeaad41f00d.png)
   
   so i try to vim deps/share/lua/5.1/resty/etcd/utils.lua, then find the code 
   ```
   if not http.tls_handshake then
       error("Bad http library. Should use api7-lua-resty-http instead")
   end
   ```
   it show that may has any problem with the package resty.http, so i found the 
http.lua under 'deps/share/lua/5.1/resty'
   there had no method named tls_handshake, but only found method named 
ssl_handshake
   
   Could you please help to check if it's a bug? or please give me a solution, 
thanks a lot!
   ### Environment 
   
   * apisix version (cmd: `apisix version`): apisix-2.5
   * OS (cmd: `uname -a`):Linux VM-50-173-centos 3.10.0-1160.11.1.el7.x86_64
   * OpenResty / Nginx version (cmd: `nginx -V` or `openresty -V`): nginx 
version: openresty/1.19.3.1
   * etcd version, if have (cmd: run `curl 
http://127.0.0.1:9090/v1/server_info` to get the info from server-info API): 
3.4.15
   * apisix-dashboard version, if have: no
   
   ### Minimal test code / Steps to reproduce the issue
   
   1. ./bin/apisix start
   
   ### What's the actual result? (including assertion message & call stack if 
applicable)
   
   Bad http library. Should use api7-lua-resty-http instead
   
   ### What's the expected result?
   running successfully
   


-- 
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